Makefile.dev revision 18140
1#	@(#)Makefile.dev	6.2 (Berkeley) 3/16/91
2# Client Makefiles define DEV and DEVFILES and provide rules for
3# individual font files
4#
5# $Id$
6
7.include "../Makefile.cfg"
8
9FONTDIR?=	/usr/share/groff_font
10DEVICEDIR?=	$(FONTDIR)/dev$(DEV)
11FONTOWN?=	bin
12FONTGRP?=	bin
13FONTMODE?=	444
14
15all:	$(DEVFILES)
16
17.for f in $(DEVFILES)
18.if exists(${.OBJDIR}/$f)
19beforeinstall:: ${.OBJDIR}/$f
20	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
21		${.OBJDIR}/$f $(DESTDIR)$(DEVICEDIR)
22.elif exists(${.CURDIR}/$f)
23beforeinstall:: ${.CURDIR}/$f
24	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
25		${.CURDIR}/$f $(DESTDIR)$(DEVICEDIR)
26.else
27beforeinstall:: $(DISTDIR)/$f
28	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
29		$(DISTDIR)/$f $(DESTDIR)$(DEVICEDIR)
30.endif
31.endfor
32
33.include <bsd.prog.mk>
34