From 1e830feda8cf37b6e0eecee2bfea862cd7b22363 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 8 Sep 1994 04:11:45 +0000 Subject: More preventive medicine on making directories before installation. Submitted by: jkh --- games/phantasia/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'games') 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/* -- cgit v1.1