]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - quiz/Makefile
Use PREFIX now
[bsdgames-darwin.git] / quiz / Makefile
1 # $NetBSD: Makefile,v 1.13 1999/02/13 02:54:22 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= quiz
5 MAN= quiz.6
6 SRCS= quiz.c rxp.c
7 CATS= africa america areas arith asia babies bard chinese collectives \
8 ed elements europe flowers greek inca index latin locomotive \
9 midearth morse mult murders poetry posneg pres province seq-easy \
10 seq-hard sexes sov spell state trek ucc
11 FILES= $(addprefix datfiles/,$(CATS))
12 FILESDIR=$(PREFIX)/share/games/quiz.db
13
14 all: $(PROG)
15
16 $(PROG): $(SRCS)
17 $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I$(ROOT)
18 $(STRIP) $(PROG)
19
20 install: $(PROG) $(MAN)
21 $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
22 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
23 $(GINSTALL) -d $(DESTDIR)$(FILESDIR)
24 $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR)
25
26 clean:
27 rm -f $(CLEANFILES) $(PROG)
28
29 .PHONY: all clean install