summaryrefslogtreecommitdiff
path: root/games/quiz/Makefile
blob: 75a9ba24566a50d7678ed9b6ade5b558f57facc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#	$OpenBSD: Makefile,v 1.7 2024/08/22 04:34:19 mglocker Exp $

PROG=	quiz
MAN=	quiz.6
SRCS=	quiz.c rxp.c
CATS=	africa america arith asia babies bard chinese collectives \
	ed elements europe flowers greek inca index latin locomotive \
	midearth morse mult murders poetry posneg pres province seq-easy \
	seq-hard sexes sov state trek ucc

NAPHONE= ${.CURDIR}/../../share/misc/na.phone
CLEANFILES+= areas

areas: ${NAPHONE}
	${.CURDIR}/naphone2areas.sh ${NAPHONE} > areas

afterinstall: areas
	(cd ${.CURDIR}/datfiles; ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} \
	    -g ${BINGRP} -m 444 ${CATS} ${DESTDIR}/usr/share/games/quiz.db)
	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
	    areas ${DESTDIR}/usr/share/games/quiz.db

.include <bsd.prog.mk>