]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - atc/Makefile
make sure directory to install stuff exists before installing
[bsdgames-darwin.git] / 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)