summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/devices/Makefile.dev
blob: ea87c3187dcd40e7f21d24ef54618d1f2dbc3d1d (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.26 2000/01/23 22:17:10 mycroft 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"
realall:	$(FONTFILES)
.else
realall:
.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>