summaryrefslogtreecommitdiffstats
path: root/hack/Makefile
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-09 09:38:08 +0000
committercgd <cgd@NetBSD.org>1993-04-09 09:38:08 +0000
commit14ff8b9c7f890f9e7cbd384e1ae17b2d67ecdee7 (patch)
tree251b92bb4b3913d738862800bf08b511dddc556e /hack/Makefile
parent773cf0e4d957a0d9d3c78c2c0551e0e4bea98c5d (diff)
downloadbsdgames-darwin-14ff8b9c7f890f9e7cbd384e1ae17b2d67ecdee7.tar.gz
bsdgames-darwin-14ff8b9c7f890f9e7cbd384e1ae17b2d67ecdee7.tar.zst
bsdgames-darwin-14ff8b9c7f890f9e7cbd384e1ae17b2d67ecdee7.zip
make sure directory to install stuff exists before installing
Diffstat (limited to 'hack/Makefile')
-rw-r--r--hack/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/hack/Makefile b/hack/Makefile
index 3ef9f739..3abe9ec5 100644
--- a/hack/Makefile
+++ b/hack/Makefile
@@ -24,6 +24,14 @@ makedefs: makedefs.c
${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
beforeinstall:
+ @if [ ! -d ${DESTDIR}/var/games/hackdir ]; then \
+ /bin/rm -f ${DESTDIR}/var/games/hackdir ; \
+ mkdir -p ${DESTDIR}/var/games/hackdir ; \
+ chown games.games ${DESTDIR}/var/games/hackdir ; \
+ chmod 755 ${DESTDIR}/var/games/hackdir ; \
+ else \
+ true ; \
+ fi
install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
${DESTDIR}/var/games/hackdir/perm
install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \