diff options
Diffstat (limited to 'hack/Makefile')
-rw-r--r-- | hack/Makefile | 8 |
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 \ |