summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/devices/Makefile.dev
blob: d761054735199eeefc3206a1638d41465a9e6d15 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
#	from: @(#)Makefile.dev	6.2 (Berkeley) 3/16/91
#	$NetBSD: Makefile.dev,v 1.25 1999/02/14 13:17:13 lukem Exp $

# Client Makefiles define DEVICE and FONTFILES and provide rules for
#	individual font files

.include <bsd.own.mk>

DEVICES_=no_libraries
.include "../Makefile.cfg"

# XXX -- this depends on ../include/defs.h
FONTDIR=	/usr/share/groff_font

DEVICEDIR?=	$(FONTDIR)/dev$(DEVICE)
FONTOWN?=	${FILESOWN}
FONTGRP?=	${FILESGRP}
FONTMODE?=	${FILESMODE}

.MAIN: all

.if ${MKSHARE} != "no"
all:	$(FONTFILES)
.else
all:
.endif

.if !target(clean)
clean cleandir distclean:
	-rm -f $(FONTFILES)
.else
COPY=	-c
.endif

.if ${MKSHARE} != "no"
FILES=${FONTFILES}
FILESDIR=${DEVICEDIR}
GENFILES=${FONTFILES:Mgenerate/*}
.for i in ${GENFILES}
FILESDIR_$i=${DEVICEDIR}/generate
.endfor
.endif

.include <bsd.prog.mk>