1 # $NetBSD: Makefile,v 1.20 1997/10/10 13:04:33 lukem Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
4 .include <bsd.own.mk> # for INSTALL_OFFENSIVE_FORTUNES
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 \
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.
15 INSTALL_OFFENSIVE_FORTUNES?= YES
16 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
22 CLEANFILES+=${DATFILES}
24 STRFILE!=cd $(.CURDIR)/../strfile; \
25 printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/strfile\n" | ${MAKE} -s -f-
27 FILES=${SRCFILES} ${DATFILES}
28 FILESDIR=/usr/share/games/fortune
32 # Normal fortunes: build directly from data files.
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
41 # Obscene fortunes: we have to build source and data files
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}
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}
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}
59 .include <bsd.prog.mk>