summaryrefslogtreecommitdiffstats
path: root/larn/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 /larn/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 'larn/Makefile')
-rw-r--r--larn/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/larn/Makefile b/larn/Makefile
index d0c1f21a..58d6f814 100644
--- a/larn/Makefile
+++ b/larn/Makefile
@@ -62,6 +62,14 @@ LDADD= -ltermcap
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)