aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/Makefile.dev
blob: 4d3781fa083b3afade7cc76af2eb3b0e752434b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#	@(#)Makefile.dev	6.2 (Berkeley) 3/16/91
# Client Makefiles define DEV and DEVFILES and provide rules for
# individual font files
#
# $Id$

.include "../Makefile.cfg"

FONTDIR?=	/usr/share/groff_font
DEVICEDIR?=	$(FONTDIR)/dev$(DEV)
FONTOWN?=	bin
FONTGRP?=	bin
FONTMODE?=	444

all:	$(DEVFILES)

.for f in $(DEVFILES)
.if exists(${.OBJDIR}/$f)
beforeinstall:: ${.OBJDIR}/$f
	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
		${.OBJDIR}/$f $(DESTDIR)$(DEVICEDIR)
.elif exists(${.CURDIR}/$f)
beforeinstall:: ${.CURDIR}/$f
	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
		${.CURDIR}/$f $(DESTDIR)$(DEVICEDIR)
.else
beforeinstall:: $(DISTDIR)/$f
	$(INSTALL) -c -o $(FONTOWN) -g $(FONTGRP) -m $(FONTMODE) \
		$(DISTDIR)/$f $(DESTDIR)$(DEVICEDIR)
.endif
.endfor

.include <bsd.prog.mk>