summaryrefslogtreecommitdiffstats
path: root/larn
diff options
context:
space:
mode:
Diffstat (limited to 'larn')
-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)