]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - larn/Makefile
Move the playerids file to /var/games, as suggest by Rafal Boni.
[bsdgames-darwin.git] / larn / Makefile
index b2ab2ae29352e985891b8f31cc18cbfe434b23b2..40d87287aa4455dbb5be99ba1e1738a1bf1081c2 100644 (file)
@@ -1,4 +1,5 @@
-#      @(#)Makefile    5.9 (Berkeley) 7/25/90
+#      from: @(#)Makefile      5.9 (Berkeley) 7/25/90
+#      $Id: Makefile,v 1.5 1994/05/23 05:41:57 cgd Exp $
 
 # EXTRA
 #      Incorporates code to gather additional performance statistics
@@ -62,6 +63,14 @@ LDADD=       -ltermcap -lcompat
 HIDEGAME=hidegame
 
 beforeinstall:
+       @if [ ! -d ${DESTDIR}/usr/share/games/larn ]; then \
+                /bin/rm -f ${DESTDIR}/usr/share/games/larn ; \
+                mkdir -p ${DESTDIR}/usr/share/games/larn ; \
+                chown root.wheel ${DESTDIR}/usr/share/games/larn ; \
+                chmod 755 ${DESTDIR}/usr/share/games/larn ; \
+        else \
+                true ; \
+        fi
        (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
            larnmaze larnopts lfortune larn.help \
            ${DESTDIR}/usr/share/games/larn)