Makefile revision 1.10
1#	from: @(#)Makefile	5.2 (Berkeley) 5/6/91
2#	$Id: Makefile,v 1.10 1994/02/10 02:31:32 cgd 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
17STRFILE!=cd $(.CURDIR)/../strfile; \
18	printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | ${MAKE} -r -s -f - xxx
19
20all: ${DATFILES}
21
22install:
23	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
24	    ${DESTDIR}/usr/share/games/fortune
25	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
26		${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
27	(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
28		${OBSDAT:R}.${OBSCENE}.rot13 \
29		${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
30
31fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
32	${STRFILE} -rsx ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
33
34fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
35	${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
36
37.include <bsd.prog.mk>
38