diff options
Diffstat (limited to 'battlestar')
-rw-r--r-- | battlestar/Makefile | 6 | ||||
-rw-r--r-- | battlestar/pathnames.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/battlestar/Makefile b/battlestar/Makefile index 639f21a2..ebd76187 100644 --- a/battlestar/Makefile +++ b/battlestar/Makefile @@ -11,12 +11,12 @@ MAN= battlestar.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) -Dm2755 $(PROG) $(DESTDIR)/usr/games/$(PROG) - $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) clean: rm -f $(CLEANFILES) $(PROG) diff --git a/battlestar/pathnames.h b/battlestar/pathnames.h index 0b2ed225..a099711a 100644 --- a/battlestar/pathnames.h +++ b/battlestar/pathnames.h @@ -31,4 +31,6 @@ * @(#)pathnames.h 8.1 (Berkeley) 5/31/93 */ -#define _PATH_SCORE "/var/games/battlestar.log" +#include "config.h" + +#define _PATH_SCORE LOCALSTATEDIR"/games/battlestar.log" |