summaryrefslogtreecommitdiffstats
path: root/cribbage
diff options
context:
space:
mode:
Diffstat (limited to 'cribbage')
-rw-r--r--cribbage/Makefile8
-rw-r--r--cribbage/pathnames.h8
2 files changed, 9 insertions, 7 deletions
diff --git a/cribbage/Makefile b/cribbage/Makefile
index 19c2a387..45f9c718 100644
--- a/cribbage/Makefile
+++ b/cribbage/Makefile
@@ -10,13 +10,13 @@ FILESNAME=cribbage.instr
all: $(PROG)
$(PROG): $(SRCS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
$(STRIP) $(PROG)
install: $(PROG) $(MAN)
- $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
- $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
- $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)/usr/share/games/$(FILESNAME)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+ $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)/$(PREFIX)/share/games/$(FILESNAME)
clean:
rm -f $(CLEANFILES) $(PROG)
diff --git a/cribbage/pathnames.h b/cribbage/pathnames.h
index e16ecda9..eaf9d1bd 100644
--- a/cribbage/pathnames.h
+++ b/cribbage/pathnames.h
@@ -31,6 +31,8 @@
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
*/
-#define _PATH_INSTR "/usr/share/games/cribbage.instr"
-#define _PATH_LOG "/var/games/criblog"
-#define _PATH_MORE "/usr/bin/more"
+#include "config.h"
+
+#define _PATH_INSTR PREFIX"/share/games/cribbage.instr"
+#define _PATH_LOG LOCALSTATEDIR"/games/criblog"
+#define _PATH_MORE PREFIX"/bin/more"