fortune(6): Merge fortunes2 into regular fortunes
[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 murphy startrek zippy
7
8 # TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, RUN 'make' with
9 # "INSTALL_OFFENSIVE_FORTUNES=NO", or set "INSTALL_OFFENSIVE_FORTUNES=NO"
10 # IN /etc/make.conf.
11
12 INSTALL_OFFENSIVE_FORTUNES?=    YES
13 .if (${INSTALL_OFFENSIVE_FORTUNES} == "YES")
14 FORTUNES+=      fortunes-o limerick murphy-o
15 .endif
16
17 FILESDIR=       ${SHAREDIR}/games/fortune
18
19 .for f in ${FORTUNES}
20 FILES+=         $f $f.dat
21 CLEANFILES+=    $f.dat fortunes-o
22 .if !(target($f.dat))
23 $f.dat: $f
24         PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
25             strfile -Cs ${.ALLSRC} ${.TARGET}
26 .endif
27 .endfor
28
29 .include <bsd.prog.mk>