diff options
Diffstat (limited to 'robots')
| -rw-r--r-- | robots/Makefile | 8 | ||||
| -rw-r--r-- | robots/pathnames.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/robots/Makefile b/robots/Makefile index 293ea7d8..eb71c00a 100644 --- a/robots/Makefile +++ b/robots/Makefile @@ -10,13 +10,13 @@ MAN= robots.6 all: $(PROG) $(PROG): $(SRCS) - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw + $(CC) $(CPPFLAGS) $(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) -d $(DESTDIR)/var/games + $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) + $(GINSTALL) -d $(DESTDIR)/$(LOCALSTATEDIR)/games clean: rm -f $(CLEANFILES) $(PROG) diff --git a/robots/pathnames.h b/robots/pathnames.h index 152810e6..fe3500ba 100644 --- a/robots/pathnames.h +++ b/robots/pathnames.h @@ -31,4 +31,6 @@ * @(#)pathnames.h 8.1 (Berkeley) 5/31/93 */ -#define _PATH_SCORE "/var/games/robots_roll" +#include "config.h" + +#define _PATH_SCORE LOCALSTATEDIR"/games/robots_roll" |
