]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
fixed makefile so it doesn't need to write to dir on install and doesn't
authorcgd <cgd@NetBSD.org>
Sun, 4 Apr 1993 10:37:27 +0000 (10:37 +0000)
committercgd <cgd@NetBSD.org>
Sun, 4 Apr 1993 10:37:27 +0000 (10:37 +0000)
need symlink

fortune/datfiles/Makefile

index 6af73c47ea8e3b0db34def507afd9b6f80ce6f25..fa86fd737a349a4219ef4fe808de048486fb8ede 100644 (file)
@@ -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 \