summaryrefslogtreecommitdiffstats
path: root/games/fortune/datfiles/Makefile
blob: 224ec9a11eee7770c08bfa1b591fe3ecf089268c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#	@(#)Makefile	8.2 (Berkeley) 4/19/94
# $FreeBSD$

FILES=	fortunes fortunes2 freebsd-tips murphy startrek zippy
BLDS=	fortunes.dat fortunes2.dat murphy.dat startrek.dat zippy.dat \
	fortunes-o fortunes-o.dat freebsd-tips.dat

# Pass all new entries by ${MAINTAINER} to preserve some semblance of
# humor in the fortune files.  What's funny to you on 6 beers may not
# be funny to anyone else.
MAINTAINER=	jkh

# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, COMMENT OUT THE
# THREE LINES AND UNCOMMENT THE FOURTH LINE.

# THE THREE LINES:
FILES+=	fortunes2-o limerick murphy-o gerrold.limerick
BLDS+=	fortunes2-o.dat limerick.dat murphy-o.dat gerrold.limerick.dat
TYPE=	real

# THE FOURTH LINE:
#TYPE=	fake

FILES+=	${BLDS}
CLEANFILES+=${BLDS}

FILESDIR=	${SHAREDIR}/games/fortune

.for f in fortunes fortunes2 fortunes2-o freebsd-tips gerrold.limerick limerick murphy murphy-o startrek zippy
$f.dat: $f
	PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
	    strfile -Crs ${.ALLSRC} ${.TARGET}
.endfor

fortunes-o.dat: fortunes-o
	PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
	    strfile -Crsx ${.ALLSRC} ${.TARGET}

fortunes-o: fortunes-o.${TYPE}
	tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud