summaryrefslogtreecommitdiffstats
path: root/games/phantasia/Makefile
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-09-08 04:11:45 +0000
committerjkh <jkh@FreeBSD.org>1994-09-08 04:11:45 +0000
commit1e830feda8cf37b6e0eecee2bfea862cd7b22363 (patch)
treee726c09d7b554661cb9dc10bdf8062d5cc46ac3b /games/phantasia/Makefile
parent6582c71446e8d08c1fbdf317aa9f2bc3fa333f7d (diff)
downloadFreeBSD-src-1e830feda8cf37b6e0eecee2bfea862cd7b22363.zip
FreeBSD-src-1e830feda8cf37b6e0eecee2bfea862cd7b22363.tar.gz
More preventive medicine on making directories before installation.
Submitted by: jkh
Diffstat (limited to 'games/phantasia/Makefile')
-rw-r--r--games/phantasia/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile
index da4264f..d3dd6f7 100644
--- a/games/phantasia/Makefile
+++ b/games/phantasia/Makefile
@@ -14,6 +14,9 @@ setup: phantglobs.o setup.o monsters.asc ${LIBM}
${CC} phantglobs.o setup.o -o ${.TARGET} -lm
beforeinstall:
+ @if [ ! -d /var/games/phantasia ]; then \
+ mkdir -p /var/games/phantasia; \
+ fi
./setup -m ${.CURDIR}/monsters.asc
chown games.bin /var/games/phantasia/*
OpenPOWER on IntegriCloud