diff options
author | jtc <jtc@NetBSD.org> | 1993-10-01 00:02:17 +0000 |
---|---|---|
committer | jtc <jtc@NetBSD.org> | 1993-10-01 00:02:17 +0000 |
commit | 8672928e4d39ae20379c48a030e794082d680c60 (patch) | |
tree | 30fc77051567d6ed89e562b707e138c82d49320a /quiz | |
parent | 63cd2b491532e5cde073130939a52068a1d361d2 (diff) | |
download | bsdgames-darwin-8672928e4d39ae20379c48a030e794082d680c60.tar.gz bsdgames-darwin-8672928e4d39ae20379c48a030e794082d680c60.tar.zst bsdgames-darwin-8672928e4d39ae20379c48a030e794082d680c60.zip |
Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
Diffstat (limited to 'quiz')
-rw-r--r-- | quiz/Makefile | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/quiz/Makefile b/quiz/Makefile index a92f8078..f845f716 100644 --- a/quiz/Makefile +++ b/quiz/Makefile @@ -1,5 +1,5 @@ # from: @(#)Makefile 5.1 (Berkeley) 11/10/91 -# $Id: Makefile,v 1.3 1993/08/01 05:44:38 mycroft Exp $ +# $Id: Makefile,v 1.4 1993/10/01 00:02:17 jtc Exp $ PROG= quiz MAN6= quiz.0 @@ -11,15 +11,8 @@ 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 + @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/quiz.db (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${CATS} ${DESTDIR}/usr/share/games/quiz.db) + ${CATS} ${DESTDIR}/usr/share/games/quiz.db) .include <bsd.prog.mk> |