mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
02b537bd23
bsd.man.mk when I change the latter to use `::' instead of `:' dependencies. (bsd.man.mk is included because NOMAN isn't defined. The maninstall target is supposed to be private to bsd.man.mk so bsd.man.mk doesn't bother testing if it is already defined. The test for redefinition in Makefile.dev was too early to do anything.) Change install target to a beforeinstall target (perhaps there should be an `extrainstall' target so that Makefiles don't have to abuse one of beforeinstall, install, realinstall or afterinstall). Don't bother testing for the install target already being defined. Rewrite the shell loop as a make loop (this reduces the time for installing groff from 78s to 65s here).
28 lines
537 B
Makefile
28 lines
537 B
Makefile
# @(#)Makefile.dev 6.2 (Berkeley) 3/16/91
|
|
|
|
# Client Makefiles define DEVICE and FONTFILES and provide rules for
|
|
# individual font files
|
|
|
|
.include "../Makefile.cfg"
|
|
|
|
FONTDIR?= /usr/share/groff_font
|
|
DEVICEDIR?= $(FONTDIR)/dev$(DEVICE)
|
|
FONTOWN?= bin
|
|
FONTGRP?= bin
|
|
FONTMODE?= 444
|
|
|
|
all: $(FONTFILES)
|
|
|
|
.for f in $(FONTFILES)
|
|
.if exists($f)
|
|
beforeinstall: $f
|
|
.else
|
|
beforeinstall: $(.CURDIR)/$f
|
|
.endif
|
|
.endfor
|
|
beforeinstall:
|
|
$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
|
|
${.ALLSRC} $(DESTDIR)$(DEVICEDIR)
|
|
|
|
.include <bsd.prog.mk>
|