diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-03-28 14:39:02 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-03-28 14:39:02 -0400 |
commit | 23454acb66be2a88647262d98d50e0f115519ea0 (patch) | |
tree | c593751ce3649be2e502fac3e080d6c0045b9fa0 /quiz | |
parent | 08eca96e71d96ad1f8e9b888875ab5570f208d19 (diff) | |
download | bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.gz bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.zst bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.zip |
Use PREFIX now
Diffstat (limited to 'quiz')
-rw-r--r-- | quiz/Makefile | 8 | ||||
-rw-r--r-- | quiz/pathnames.h | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/quiz/Makefile b/quiz/Makefile index 54afe386..54e1547d 100644 --- a/quiz/Makefile +++ b/quiz/Makefile @@ -9,17 +9,17 @@ CATS= africa america areas arith asia babies bard chinese collectives \ midearth morse mult murders poetry posneg pres province seq-easy \ seq-hard sexes sov spell state trek ucc FILES= $(addprefix datfiles/,$(CATS)) -FILESDIR=/usr/share/games/quiz.db +FILESDIR=$(PREFIX)/share/games/quiz.db all: $(PROG) $(PROG): $(SRCS) - $(CC) $(CFLAGS) -o $(PROG) $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I$(ROOT) $(STRIP) $(PROG) install: $(PROG) $(MAN) - $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG) - $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(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) diff --git a/quiz/pathnames.h b/quiz/pathnames.h index 821cc29c..01acdc25 100644 --- a/quiz/pathnames.h +++ b/quiz/pathnames.h @@ -31,5 +31,7 @@ * @(#)pathnames.h 8.1 (Berkeley) 5/31/93 */ -#define _PATH_PAGER "/usr/bin/more" -#define _PATH_QUIZIDX "/usr/share/games/quiz.db/index" +#include "config.h" + +#define _PATH_PAGER PREFIX"/bin/more" +#define _PATH_QUIZIDX PREFIX"/share/games/quiz.db/index" |