mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
16f4e196f2
least the 4.4-lite days. This is pointless, since fortune(6) performs its own randomization. It was also problematic for binary update systems such as ports/security/freebsd-update. This commit simply removes the -r option to strfile so that the datfiles are constant. Submitted by: Colin Percival <cperciva@sfu.ca>
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# @(#)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 -Cs ${.ALLSRC} ${.TARGET}
|
|
.endfor
|
|
|
|
fortunes-o.dat: fortunes-o
|
|
PATH=$$PATH:/usr/games:${.OBJDIR}/../strfile \
|
|
strfile -Csx ${.ALLSRC} ${.TARGET}
|
|
|
|
fortunes-o: fortunes-o.${TYPE}
|
|
tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|