summaryrefslogtreecommitdiffstats
path: root/ching/printching
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-03-28 14:39:02 -0400
committerCameron Katri <me@cameronkatri.com>2021-03-28 14:39:02 -0400
commit23454acb66be2a88647262d98d50e0f115519ea0 (patch)
treec593751ce3649be2e502fac3e080d6c0045b9fa0 /ching/printching
parent08eca96e71d96ad1f8e9b888875ab5570f208d19 (diff)
downloadbsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.gz
bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.zip
Use PREFIX now
Diffstat (limited to 'ching/printching')
-rw-r--r--ching/printching/Makefile4
-rw-r--r--ching/printching/pathnames.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/ching/printching/Makefile b/ching/printching/Makefile
index 4adbc181..e8e6634f 100644
--- a/ching/printching/Makefile
+++ b/ching/printching/Makefile
@@ -6,11 +6,11 @@ SRCS= printching.c
all: $(PROG)
$(PROG): $(SRCS)
- $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include -I$(ROOT)
$(STRIP) $(PROG)
install: $(PROG)
- $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/libexec/ching/$(PROG)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/libexec/ching/$(PROG)
clean:
rm -f $(CLEANFILES) $(PROG)
diff --git a/ching/printching/pathnames.h b/ching/printching/pathnames.h
index d9962663..93cbb95e 100644
--- a/ching/printching/pathnames.h
+++ b/ching/printching/pathnames.h
@@ -35,4 +35,6 @@
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
*/
-#define _PATH_HEX "/usr/share/games/ching/hexagrams"
+#include "config.h"
+
+#define _PATH_HEX PREFIX"/share/games/ching/hexagrams"