summaryrefslogtreecommitdiffstats
path: root/games/fortune/datfiles/Makefile
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-03-12 12:35:02 +0000
committerjhb <jhb@FreeBSD.org>2013-03-12 12:35:02 +0000
commit369cfc7386b7e6ca0efa2c406063e75210ab5fa2 (patch)
treeb2888248edae1a50cad7768165d526a10b96f27b /games/fortune/datfiles/Makefile
parente42141c2bfaab85a100e1a600973362d0f912491 (diff)
downloadFreeBSD-src-369cfc7386b7e6ca0efa2c406063e75210ab5fa2.zip
FreeBSD-src-369cfc7386b7e6ca0efa2c406063e75210ab5fa2.tar.gz
Remove fortunes-o from the base system. Debating what does or does not
belong in this file is not a useful exercise or conducive to producing a high quality advanced operating system. While here, simplify the make rules to autocompute BLDS and FILES from a single DB variable. Approved by: core MFC after: 1 week
Diffstat (limited to 'games/fortune/datfiles/Makefile')
-rw-r--r--games/fortune/datfiles/Makefile27
1 files changed, 6 insertions, 21 deletions
diff --git a/games/fortune/datfiles/Makefile b/games/fortune/datfiles/Makefile
index 100182f..bf13182 100644
--- a/games/fortune/datfiles/Makefile
+++ b/games/fortune/datfiles/Makefile
@@ -1,37 +1,22 @@
# @(#)Makefile 8.2 (Berkeley) 4/19/94
# $FreeBSD$
-FILES= fortunes freebsd-tips murphy startrek zippy
-BLDS= fortunes.dat murphy.dat startrek.dat zippy.dat \
- fortunes-o fortunes-o.dat freebsd-tips.dat
+DB= fortunes freebsd-tips murphy startrek zippy
# TO AVOID INSTALLING THE POTENTIALLY OFFENSIVE FORTUNES, COMMENT OUT THE
-# THREE LINES AND UNCOMMENT THE FOURTH LINE.
+# NEXT LINE.
+DB+= limerick murphy-o gerrold.limerick
-# THE THREE LINES:
-FILES+= limerick murphy-o gerrold.limerick
-BLDS+= limerick.dat murphy-o.dat gerrold.limerick.dat
-TYPE= real
-
-# THE FOURTH LINE:
-#TYPE= fake
-
-FILES+= ${BLDS}
+BLDS= ${DB:S/$/.dat/}
+FILES= ${DB} ${BLDS}
CLEANFILES+=${BLDS}
FILESDIR= ${SHAREDIR}/games/fortune
-.for f in fortunes freebsd-tips gerrold.limerick limerick murphy murphy-o startrek zippy
+.for f in ${DB}
$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}
- LC_ALL=C tr a-zA-Z n-za-mN-ZA-M < ${.ALLSRC} > ${.TARGET}
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud