1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile.dev 6.2 (Berkeley) 3/16/91
|
1993-08-15 23:14:59 +04:00
|
|
|
# $Id: Makefile.dev,v 1.11 1993/08/15 19:14:59 mycroft Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
# Client Makefiles define DEVICE and FONTFILES and provide rules for
|
|
|
|
# individual font files
|
|
|
|
|
1993-07-15 00:39:14 +04:00
|
|
|
.include "../../Makefile.cfg"
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-07-16 21:11:36 +04:00
|
|
|
# XXX -- this depends on ../include/defs.h
|
|
|
|
FONTDIR= /usr/share/groff_font
|
|
|
|
|
|
|
|
DEVICEDIR?= $(DESTDIR)$(FONTDIR)/dev$(DEVICE)
|
1993-03-21 12:45:37 +03:00
|
|
|
FONTOWN?= bin
|
|
|
|
FONTGRP?= bin
|
|
|
|
FONTMODE?= 444
|
|
|
|
|
|
|
|
.MAIN: all
|
|
|
|
|
|
|
|
all: $(FONTFILES)
|
|
|
|
|
|
|
|
.if !target(clean)
|
1993-07-17 15:58:38 +04:00
|
|
|
clean cleandir:
|
1993-07-15 00:39:14 +04:00
|
|
|
-rm -f $(FONTFILES)
|
1993-07-18 23:44:28 +04:00
|
|
|
.else
|
|
|
|
COPY= -c
|
1993-07-15 00:39:14 +04:00
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.if !target(install)
|
|
|
|
install:
|
1993-07-16 21:11:36 +04:00
|
|
|
install -d -o $(BINOWN) -g $(BINGRP) -m 755 $(DEVICEDIR)
|
1993-08-15 23:14:59 +04:00
|
|
|
.if exists(${.CURDIR}/generate)
|
|
|
|
install -d -o $(BINOWN) -g $(BINGRP) -m 755 $(DEVICEDIR)/generate
|
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
-for f in $(FONTFILES); do \
|
1993-07-18 23:44:28 +04:00
|
|
|
install ${COPY} -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) $$f \
|
1993-07-16 21:11:36 +04:00
|
|
|
$(DEVICEDIR)/$$f; \
|
1993-03-21 12:45:37 +03:00
|
|
|
done
|
|
|
|
.endif
|
1993-07-17 15:58:38 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|