NetBSD/gnu/usr.bin/groff/devices/Makefile.dev

39 lines
789 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"
# XXX -- this depends on ../include/defs.h
FONTDIR= /usr/share/groff_font
DEVICEDIR?= $(DESTDIR)$(FONTDIR)/dev$(DEVICE)
FONTOWN?= bin
FONTGRP?= bin
FONTMODE?= 444
.MAIN: all
all: $(FONTFILES)
.if !target(clean)
clean cleandir:
-rm -f $(FONTFILES)
.endif
.if !target(install)
install:
install -d -o $(BINOWN) -g $(BINGRP) -m 755 $(DEVICEDIR)
-if test -d $(.CURDIR)/generate; then \
install -d -o $(BINOWN) -g $(BINGRP) -m 755 \
$(DEVICEDIR)/generate; \
fi
-for f in $(FONTFILES); do \
install -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) $$f \
$(DEVICEDIR)/$$f; \
done
.endif
.include <bsd.prog.mk>