summaryrefslogtreecommitdiffstats
path: root/atc/Makefile
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-09 09:35:33 +0000
committercgd <cgd@NetBSD.org>1993-04-09 09:35:33 +0000
commit42d613aa40487211c6231486a70597064179d50c (patch)
treed18078fc0335929d832f62e293d275f4fe3aad1e /atc/Makefile
parentb72957a6cd22b2c7211789de381fb2fbe21a8b72 (diff)
downloadbsdgames-darwin-42d613aa40487211c6231486a70597064179d50c.tar.gz
bsdgames-darwin-42d613aa40487211c6231486a70597064179d50c.tar.zst
bsdgames-darwin-42d613aa40487211c6231486a70597064179d50c.zip
make sure directory to install stuff exists before installing
Diffstat (limited to 'atc/Makefile')
-rw-r--r--atc/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/atc/Makefile b/atc/Makefile
index 07e88780..1ffb5d5f 100644
--- a/atc/Makefile
+++ b/atc/Makefile
@@ -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)