From 23454acb66be2a88647262d98d50e0f115519ea0 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 28 Mar 2021 14:39:02 -0400 Subject: Use PREFIX now --- boggle/boggle/Makefile | 6 +++--- boggle/boggle/bog.h | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'boggle/boggle') diff --git a/boggle/boggle/Makefile b/boggle/boggle/Makefile index 770ef171..b00489ba 100644 --- a/boggle/boggle/Makefile +++ b/boggle/boggle/Makefile @@ -5,14 +5,14 @@ MAN= boggle.6 all: boggle $(PROG): $(SRCS) - $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG) -lncursesw + $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG) -lncursesw -I$(ROOT) $(STRIP) boggle clean: rm -f boggle 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) .PHONY: all clean install diff --git a/boggle/boggle/bog.h b/boggle/boggle/bog.h index 7a0ae060..44cf1b7d 100644 --- a/boggle/boggle/bog.h +++ b/boggle/boggle/bog.h @@ -34,15 +34,17 @@ * @(#)bog.h 8.1 (Berkeley) 6/11/93 */ +#include "config.h" + #define LOADDICT 1 /* Load the dictionary for speed */ /* * Locations for the dictionary (generated by mkdict), * index (generated by mkindex), and helpfile */ -#define DICT "/usr/share/games/boggle/dictionary" -#define DICTINDEX "/usr/share/games/boggle/dictindex" -#define HELPFILE "/usr/share/games/boggle/helpfile" +#define DICT PREFIX"/share/games/boggle/dictionary" +#define DICTINDEX PREFIX"/share/games/boggle/dictindex" +#define HELPFILE PREFIX"/share/games/boggle/helpfile" /* * The theoretical maximum for MAXWORDLEN is ('a' - 1) == 96 -- cgit v1.2.3-56-ge451