]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
make sure directory to install stuff exists before installing
authorcgd <cgd@NetBSD.org>
Fri, 9 Apr 1993 09:35:33 +0000 (09:35 +0000)
committercgd <cgd@NetBSD.org>
Fri, 9 Apr 1993 09:35:33 +0000 (09:35 +0000)
atc/Makefile

index 07e88780c41152ddc62f4918442d1086499d6cb7..1ffb5d5ff5a113ad7000bf425a06d3bf7d77aca4 100644 (file)
@@ -12,6 +12,14 @@ CLEANFILES=grammar.c y.tab.h lex.c
 HIDEGAME=hidegame
 
 beforeinstall: 
+       @if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
+                /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
+                mkdir -p ${DESTDIR}/usr/share/games/atc ; \
+                chown root.wheel ${DESTDIR}/usr/share/games/atc ; \
+                chmod 755 ${DESTDIR}/usr/share/games/atc ; \
+        else \
+                true ; \
+        fi
        (cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
            ${GAMES} ${DESTDIR}/usr/share/games/atc)