summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-04 10:37:27 +0000
committercgd <cgd@NetBSD.org>1993-04-04 10:37:27 +0000
commitccb51d2169c63cbc7feeb357e199b234e6608a90 (patch)
treecfab410f98d32efe41f1362d9e2dab1da5afe87e
parent61578ee21bdadacc8093a846947cfc3b7b298bdf (diff)
downloadbsdgames-darwin-ccb51d2169c63cbc7feeb357e199b234e6608a90.tar.gz
bsdgames-darwin-ccb51d2169c63cbc7feeb357e199b234e6608a90.tar.zst
bsdgames-darwin-ccb51d2169c63cbc7feeb357e199b234e6608a90.zip
fixed makefile so it doesn't need to write to dir on install and doesn't
need symlink
-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 \