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 --- cgram/Makefile | 6 +++--- cgram/pathnames.h | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cgram') diff --git a/cgram/Makefile b/cgram/Makefile index e99ceed2..7992ad40 100644 --- a/cgram/Makefile +++ b/cgram/Makefile @@ -7,12 +7,12 @@ MAN=cgram.6 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) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) clean: rm -f $(CLEANFILES) $(PROG) diff --git a/cgram/pathnames.h b/cgram/pathnames.h index 51da95c9..e93a72df 100644 --- a/cgram/pathnames.h +++ b/cgram/pathnames.h @@ -27,4 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#define _PATH_FORTUNE "/usr/games/fortune" +#include "config.h" + +#define _PATH_FORTUNE PREFIX"/games/fortune" -- cgit v1.2.3-56-ge451