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 --- cribbage/Makefile | 8 ++++---- cribbage/pathnames.h | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'cribbage') 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" -- cgit v1.2.3