]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - fortune/datfiles/Makefile
Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
[bsdgames-darwin.git] / fortune / datfiles / Makefile
1 # $NetBSD: Makefile,v 1.34 2003/10/19 01:01:44 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 unamerican-o limerick \
7 netbsd farber
8 DATFILES= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
9 fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat \
10 limerick.dat limerick-o limerick-o.dat unamerican-o \
11 unamerican-o.dat netbsd.dat netbsd-o netbsd-o.dat \
12 farber.dat
13
14 # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
15 # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
16 # IN bsd.own.mk OR /etc/mk.conf.
17
18 INSTALL_OFFENSIVE_FORTUNES?= YES
19 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
20 TYPE= real
21 .else
22 TYPE= fake
23 .endif
24
25 CLEANFILES+=${DATFILES}
26
27 STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
28 STRFILE=${STRFILEDIR}/strfile
29
30 .if ${MKSHARE} != "no"
31 FILES=${SRCFILES} ${DATFILES}
32 FILESDIR=/usr/share/games/fortune
33 .endif
34
35 realall: ${DATFILES}
36
37 # Normal fortunes: build directly from data files.
38
39 fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat farber.dat:
40 ${_MKMSG} " create ${.TARGET}"
41 ${_MKCMD}\
42 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
43 fortunes.dat: fortunes
44 fortunes2.dat: fortunes2
45 startrek.dat: startrek
46 zippy.dat: zippy
47 limerick.dat: limerick
48 netbsd.dat: netbsd
49 farber.dat: farber
50
51 # Obscene fortunes: we have to build source and data files
52
53 fortunes-o: fortunes-o.${TYPE}
54 ${_MKMSG} " create ${.TARGET}"
55 ${_MKCMD}\
56 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
57 fortunes-o.dat: fortunes-o
58 ${_MKMSG} " create ${.TARGET}"
59 ${_MKCMD}\
60 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
61
62 fortunes2-o: fortunes2-o.${TYPE}
63 ${_MKMSG} " create ${.TARGET}"
64 ${_MKCMD}\
65 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
66 fortunes2-o.dat: fortunes2-o
67 ${_MKMSG} " create ${.TARGET}"
68 ${_MKCMD}\
69 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
70
71 limerick-o: limerick-o.${TYPE}
72 ${_MKMSG} " create ${.TARGET}"
73 ${_MKCMD}\
74 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
75 limerick-o.dat: limerick-o
76 ${_MKMSG} " create ${.TARGET}"
77 ${_MKCMD}\
78 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
79
80 unamerican-o: unamerican-o.${TYPE}
81 ${_MKMSG} " create ${.TARGET}"
82 ${_MKCMD}\
83 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
84 unamerican-o.dat: unamerican-o
85 ${_MKMSG} " create ${.TARGET}"
86 ${_MKCMD}\
87 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
88
89 netbsd-o: netbsd-o.${TYPE}
90 ${_MKMSG} " create ${.TARGET}"
91 ${_MKCMD}\
92 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
93 netbsd-o.dat: netbsd-o
94 ${_MKMSG} " create ${.TARGET}"
95 ${_MKCMD}\
96 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
97
98
99 .include <bsd.prog.mk>