1 1.1 cgd # @(#)Makefile 5.1 (Berkeley) 11/10/91 2 1.1 cgd 3 1.1 cgd PROG= quiz 4 1.1 cgd MAN6= quiz.0 5 1.1 cgd SRCS= quiz.c rxp.c 6 1.1 cgd CATS= africa america areas arith asia babies bard chinese collectives \ 7 1.1 cgd ed elements europe greek inca index latin locomotive midearth morse \ 8 1.1 cgd mult murders poetry posneg pres province seq-easy seq-hard sexes sov \ 9 1.1 cgd spell state trek ucc 10 1.1 cgd HIDEGAME=hidegame 11 1.1 cgd 12 1.1 cgd beforeinstall: 13 1.2 cgd @if [ ! -d ${DESTDIR}/usr/share/games/quiz.db ]; then \ 14 1.2 cgd /bin/rm -f ${DESTDIR}/usr/share/games/quiz.db ; \ 15 1.2 cgd mkdir -p ${DESTDIR}/usr/share/games/quiz.db ; \ 16 1.2 cgd chown root.wheel ${DESTDIR}/usr/share/games/quiz.db ; \ 17 1.2 cgd chmod 755 ${DESTDIR}/usr/share/games/quiz.db ; \ 18 1.2 cgd else \ 19 1.2 cgd true ; \ 20 1.2 cgd fi 21 1.1 cgd (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 22 1.1 cgd ${CATS} ${DESTDIR}/usr/share/games/quiz.db) 23 1.1 cgd 24 1.1 cgd .include <bsd.prog.mk> 25