]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - fortune/datfiles/Makefile
Use tr instead of caesar to generate fortunes-o
[bsdgames-darwin.git] / fortune / datfiles / Makefile
1 # $NetBSD: Makefile,v 1.15 1996/02/29 00:21:16 jtc Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/19/94
3
4 SRCS= fortunes fortunes2 startrek zippy
5 BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
6 fortunes-o fortunes-o.dat
7
8 # TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
9 # LINES AND COMMENT OUT THE FOURTH LINE.
10
11 # THE THREE LINES
12 SRCS+= fortunes2-o limerick
13 BLDS+= fortunes2-o.dat limerick.dat
14 TYPE= real
15
16 # THE FOURTH LINE
17 #TYPE= fake
18
19 CLEANFILES+=${BLDS}
20
21 STRFILE!=cd $(.CURDIR)/../strfile; \
22 printf "xxx:\n\techo \$${.OBJDIR}/strfile\n" | \
23 ${MAKE} -r -s -f - xxx | grep strfile
24
25 all: ${BLDS}
26
27 install: ${SRCS} ${BLDS}
28 (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
29 ${SRCS} ${DESTDIR}/usr/share/games/fortune)
30 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
31 ${DESTDIR}/usr/share/games/fortune
32
33 fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
34 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
35
36 fortunes-o.dat: fortunes-o
37 ${STRFILE} -rsx fortunes-o ${.TARGET}
38
39 fortunes-o: fortunes-o.${TYPE}
40 tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
41
42 .include <bsd.prog.mk>