Don't randomize fortune dat files during build time. fortune will display
[dragonfly.git] / games / fortune / datfiles / Makefile
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.7 2007/12/27 13:40:11 matthias Exp $
4
5 # list of fortunes to be installed
6 FORTUNES=       dragonfly-funny dragonfly-tips fortunes fortunes2 fortunes-o \
7                 murphy startrek zippy
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:
13 FORTUNES+=      fortunes2-o limerick murphy-o
14 TYPE=           real
15
16 # THE FOURTH LINE:
17 #TYPE=          fake
18
19 FILESDIR=       ${SHAREDIR}/games/fortune
20
21
22 # add rules for specially handled fortunes here
23 fortunes-o.dat: fortunes-o
24         PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
25             strfile -Csx ${.ALLSRC} ${.TARGET}
26
27 fortunes-o: fortunes-o.${TYPE}
28         tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}
29
30
31 .for f in ${FORTUNES}
32 FILES+=         $f $f.dat
33 CLEANFILES+=    $f.dat fortunes-o
34 .if !(target($f.dat))
35 $f.dat: $f
36         PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
37             strfile -Cs ${.ALLSRC} ${.TARGET}
38 .endif
39 .endfor
40
41 .include <bsd.prog.mk>