1 # $NetBSD: Makefile,v 1.30 2000/12/30 17:51:26 sommerfeld 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
13 # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
14 # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
15 # IN bsd.own.mk OR /etc/mk.conf.
17 INSTALL_OFFENSIVE_FORTUNES?= YES
18 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
24 CLEANFILES+=${DATFILES} limerick-o
26 STRFILEDIR!=cd $(.CURDIR)/../strfile; ${PRINTOBJDIR}
27 STRFILE=${STRFILEDIR}/strfile
29 .if ${MKSHARE} != "no"
30 FILES=${SRCFILES} ${DATFILES}
31 FILESDIR=/usr/share/games/fortune
36 # Normal fortunes: build directly from data files.
38 fortunes.dat fortunes2.dat startrek.dat zippy.dat limerick.dat netbsd.dat:
39 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
40 fortunes.dat: fortunes
41 fortunes2.dat: fortunes2
42 startrek.dat: startrek
44 limerick.dat: limerick
47 # Obscene fortunes: we have to build source and data files
49 fortunes-o: fortunes-o.${TYPE}
50 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
51 fortunes-o.dat: fortunes-o
52 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
54 fortunes2-o: fortunes2-o.${TYPE}
55 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
56 fortunes2-o.dat: fortunes2-o
57 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
59 limerick-o: limerick-o.${TYPE}
60 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
61 limerick-o.dat: limerick-o
62 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
64 unamerican-o: unamerican-o.${TYPE}
65 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
66 unamerican-o.dat: unamerican-o
67 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
69 netbsd-o: netbsd-o.${TYPE}
70 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
71 netbsd-o.dat: netbsd-o
72 ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
75 .include <bsd.prog.mk>