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 /cribbage | |
| parent | 08eca96e71d96ad1f8e9b888875ab5570f208d19 (diff) | |
| download | bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.gz bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.zip | |
Use PREFIX now
Diffstat (limited to 'cribbage')
| -rw-r--r-- | cribbage/Makefile | 8 | ||||
| -rw-r--r-- | cribbage/pathnames.h | 8 |
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" |
