X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/8f6735a7b8851d9f9e1e24b84f4db412ff678e37..dfc80bf956a344dcd185f6db2980af7919c52e0d:/quiz/Makefile diff --git a/quiz/Makefile b/quiz/Makefile index 807ac4fe..54e1547d 100644 --- a/quiz/Makefile +++ b/quiz/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 1997/03/24 22:15:48 christos Exp $ +# $NetBSD: Makefile,v 1.13 1999/02/13 02:54:22 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= quiz @@ -8,8 +8,22 @@ CATS= africa america areas 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 spell state trek ucc -HIDEGAME=hidegame -FILES= ${CATS:S@^@${.CURDIR}/datfiles/@} -FILESDIR=/usr/share/games/quiz.db +FILES= $(addprefix datfiles/,$(CATS)) +FILESDIR=$(PREFIX)/share/games/quiz.db -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I$(ROOT) + $(STRIP) $(PROG) + +install: $(PROG) $(MAN) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) + $(GINSTALL) -d $(DESTDIR)$(FILESDIR) + $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install