diff options
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/groff/Makefile.dev | 21 | ||||
-rw-r--r-- | gnu/usr.bin/groff/font/Makefile.dev | 21 |
2 files changed, 18 insertions, 24 deletions
diff --git a/gnu/usr.bin/groff/Makefile.dev b/gnu/usr.bin/groff/Makefile.dev index 36c3f30..2aa71f8 100644 --- a/gnu/usr.bin/groff/Makefile.dev +++ b/gnu/usr.bin/groff/Makefile.dev @@ -13,18 +13,15 @@ FONTMODE?= 444 all: $(FONTFILES) -.if !target(maninstall) -maninstall: - @echo -n -.endif - -.if !target(install) -install: - for f in $(FONTFILES); do \ - ff=$$f; test -f $$f || ff=${.CURDIR}/$$f || true; \ - $(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) $$ff \ - $(DESTDIR)$(DEVICEDIR)/$$f; \ - done +.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> diff --git a/gnu/usr.bin/groff/font/Makefile.dev b/gnu/usr.bin/groff/font/Makefile.dev index 36c3f30..2aa71f8 100644 --- a/gnu/usr.bin/groff/font/Makefile.dev +++ b/gnu/usr.bin/groff/font/Makefile.dev @@ -13,18 +13,15 @@ FONTMODE?= 444 all: $(FONTFILES) -.if !target(maninstall) -maninstall: - @echo -n -.endif - -.if !target(install) -install: - for f in $(FONTFILES); do \ - ff=$$f; test -f $$f || ff=${.CURDIR}/$$f || true; \ - $(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) $$ff \ - $(DESTDIR)$(DEVICEDIR)/$$f; \ - done +.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> |