summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)