1 # $NetBSD: Makefile,v 1.32 2002/01/30 19:41:39 tv Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
4 .include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
6 SRCFILES= fortunes fortunes2 startrek zippy unamerican-o limerick \
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 \
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.
18 INSTALL_OFFENSIVE_FORTUNES?= YES
19 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
25 CLEANFILES+=${DATFILES} limerick-o
27 STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
28 STRFILE=${STRFILEDIR}/strfile
30 .if ${MKSHARE} != "no"
31 FILES=${SRCFILES} ${DATFILES}
32 FILESDIR=/usr/share/games/fortune
37 # Normal fortunes: build directly from data files.
39 fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat farber.dat:
40 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
41 fortunes.dat: fortunes
42 fortunes2.dat: fortunes2
43 startrek.dat: startrek
45 limerick.dat: limerick
49 # Obscene fortunes: we have to build source and data files
51 fortunes-o: fortunes-o.${TYPE}
52 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
53 fortunes-o.dat: fortunes-o
54 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
56 fortunes2-o: fortunes2-o.${TYPE}
57 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
58 fortunes2-o.dat: fortunes2-o
59 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
61 limerick-o: limerick-o.${TYPE}
62 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
63 limerick-o.dat: limerick-o
64 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
66 unamerican-o: unamerican-o.${TYPE}
67 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
68 unamerican-o.dat: unamerican-o
69 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
71 netbsd-o: netbsd-o.${TYPE}
72 tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
73 netbsd-o.dat: netbsd-o
74 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
77 .include <bsd.prog.mk>