xref: /dragonfly/games/fortune/datfiles/Makefile (revision c9f721c2)
1#	@(#)Makefile	8.2 (Berkeley) 4/19/94
2# $FreeBSD: src/games/fortune/datfiles/Makefile,v 1.24.2.3 2002/02/18 15:03:32 ru Exp $
3# $DragonFly: src/games/fortune/datfiles/Makefile,v 1.3 2004/01/31 06:56:36 dillon Exp $
4
5FILES=	fortunes fortunes2 freebsd-tips murphy startrek zippy
6BLDS=	fortunes.dat fortunes2.dat murphy.dat startrek.dat zippy.dat \
7	fortunes-o fortunes-o.dat freebsd-tips.dat
8
9# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, COMMENT OUT THE
10# THREE LINES AND UNCOMMENT THE FOURTH LINE.
11
12# THE THREE LINES:
13FILES+=	fortunes2-o limerick murphy-o
14BLDS+=	fortunes2-o.dat limerick.dat murphy-o.dat
15TYPE=	real
16
17# THE FOURTH LINE:
18#TYPE=	fake
19
20FILES+=	${BLDS}
21CLEANFILES+=${BLDS}
22
23FILESDIR=	${SHAREDIR}/games/fortune
24
25.for f in fortunes fortunes2 fortunes2-o freebsd-tips limerick murphy murphy-o startrek zippy
26$f.dat: $f
27	PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
28	    strfile -Crs ${.ALLSRC} ${.TARGET}
29.endfor
30
31fortunes-o.dat: fortunes-o
32	PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
33	    strfile -Crsx ${.ALLSRC} ${.TARGET}
34
35fortunes-o: fortunes-o.${TYPE}
36	tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}
37
38.include <bsd.prog.mk>
39