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