Makefile revision 1.7
1#	from: @(#)Makefile	5.2 (Berkeley) 5/6/91
2#	$Id: Makefile,v 1.7 1993/09/30 23:57:08 jtc Exp $
3
4#
5# set `OBSCENE' to "real" to have obscene fortunes installed,
6# fake to have a note stating that they're not installed
7# isntalled in their place
8#
9OBSCENE=real
10
11NORMDAT= fortunes.dat startrek.dat zippy.dat
12OBSDAT=	fortunes-o.dat
13DATFILES= ${NORMDAT} ${OBSDAT}
14
15CLEANFILES+=${DATFILES}
16
17all: ${DATFILES}
18
19install:
20	@install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/fortune
21	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
22	    ${DESTDIR}/usr/share/games/fortune
23	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
24		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
25	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
26		${OBSDAT:R}.${OBSCENE}.rot13 \
27		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
28
29fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
30	${.CURDIR}/../strfile/obj/strfile -rsx \
31	    ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
32
33fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
34	${.CURDIR}/../strfile/obj/strfile -rs \
35	    ${.CURDIR}/${.TARGET:R} ${.TARGET}
36
37.include <bsd.prog.mk>
38