From 1bead4f8301fb9d810573e99907bb3b9681a614e Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 9 Apr 1993 09:38:47 +0000 Subject: make sure directory to install stuff exists before installing --- quiz/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quiz/Makefile b/quiz/Makefile index 9244a6d2..bd0642f1 100644 --- a/quiz/Makefile +++ b/quiz/Makefile @@ -10,6 +10,14 @@ CATS= africa america areas arith asia babies bard chinese collectives \ HIDEGAME=hidegame beforeinstall: + @if [ ! -d ${DESTDIR}/usr/share/games/quiz.db ]; then \ + /bin/rm -f ${DESTDIR}/usr/share/games/quiz.db ; \ + mkdir -p ${DESTDIR}/usr/share/games/quiz.db ; \ + chown root.wheel ${DESTDIR}/usr/share/games/quiz.db ; \ + chmod 755 ${DESTDIR}/usr/share/games/quiz.db ; \ + else \ + true ; \ + fi (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ${CATS} ${DESTDIR}/usr/share/games/quiz.db) -- cgit v1.2.3-56-ge451