]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
fix various install problems.
authorcgd <cgd@NetBSD.org>
Fri, 9 Apr 1993 09:37:17 +0000 (09:37 +0000)
committercgd <cgd@NetBSD.org>
Fri, 9 Apr 1993 09:37:17 +0000 (09:37 +0000)
fortune/datfiles/Makefile

index fa86fd737a349a4219ef4fe808de048486fb8ede..be8c16b2625a085384040589ca97220269dfbcca 100644 (file)
@@ -7,12 +7,28 @@
 #
 OBSCENE=real
 
-DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat
+NORMDAT= fortunes.dat startrek.dat zippy.dat
+OBSDAT=        fortunes-o.dat
+DATFILES= ${NORMDAT} ${OBSDAT}
+
 CLEANFILES+=${DATFILES}
 
 install: ${DATFILES}
-       install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
+       @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
+                /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
+                mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
+                chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
+                chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
+        else \
+                true ; \
+        fi
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
            ${DESTDIR}/usr/share/games/fortune
+       (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+               ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune)
+       (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+               ${OBSDAT:R}.${OBSCENE}.rot13 \
+               ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R})
 
 fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13
        ${.CURDIR}/../strfile/obj/strfile -rsx \