summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fortune/datfiles/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile
index 6af73c47..fa86fd73 100644
--- a/fortune/datfiles/Makefile
+++ b/fortune/datfiles/Makefile
@@ -1,17 +1,22 @@
# @(#)Makefile 5.2 (Berkeley) 5/6/91
+#
+# set `OBSCENE' to "real" to have obscene fortunes installed,
+# fake to have a note stating that they're not installed
+# isntalled in their place
+#
+OBSCENE=real
+
DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat
CLEANFILES+=${DATFILES}
install: ${DATFILES}
- (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${DATFILES:R} ${DESTDIR}/usr/share/games/fortune)
install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
${DESTDIR}/usr/share/games/fortune
-fortunes-o.dat: ${.TARGET:R}
+fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
${.CURDIR}/../strfile/obj/strfile -rsx \
- ${.CURDIR}/${.TARGET:R} ${.TARGET}
+ ${.CURDIR}/${.TARGET:R}.${OBSCENE}.rot13 ${.TARGET}
fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
${.CURDIR}/../strfile/obj/strfile -rs \