From 42d613aa40487211c6231486a70597064179d50c Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 9 Apr 1993 09:35:33 +0000 Subject: make sure directory to install stuff exists before installing --- atc/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'atc/Makefile') 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) -- cgit v1.2.3-56-ge451