]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - fortune/datfiles/Makefile
WARNSify
[bsdgames-darwin.git] / fortune / datfiles / Makefile
1 # $NetBSD: Makefile,v 1.20 1997/10/10 13:04:33 lukem Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
3
4 .include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
5
6 SRCFILES= fortunes fortunes2 startrek zippy
7 DATFILES= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
8 fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \
9 limerick limerick.dat
10
11 # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
12 # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
13 # IN bsd.own.mk OR /etc/mk.conf.
14
15 INSTALL_OFFENSIVE_FORTUNES?= YES
16 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
17 TYPE= real
18 .else
19 TYPE= fake
20 .endif
21
22 CLEANFILES+=${DATFILES}
23
24 STRFILE!=cd $(.CURDIR)/../strfile; \
25 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/strfile\n" | ${MAKE} -s -f-
26
27 FILES=${SRCFILES} ${DATFILES}
28 FILESDIR=/usr/share/games/fortune
29
30 all: ${DATFILES}
31
32 # Normal fortunes: build directly from data files.
33
34 fortunes.dat fortunes2.dat startrek.dat zippy.dat:
35 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
36 fortunes.dat: fortunes
37 fortunes2.dat: fortunes2
38 startrek.dat: startrek
39 zippy.dat: zippy
40
41 # Obscene fortunes: we have to build source and data files
42
43 fortunes-o: fortunes-o.${TYPE}
44 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
45 fortunes-o.dat: fortunes-o
46 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
47
48 fortunes2-o: fortunes2-o.${TYPE}
49 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
50 fortunes2-o.dat: fortunes2-o
51 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
52
53 limerick: limerick.${TYPE}
54 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
55 limerick.dat: limerick
56 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
57
58
59 .include <bsd.prog.mk>