summaryrefslogtreecommitdiffstats
path: root/dm
diff options
context:
space:
mode:
Diffstat (limited to 'dm')
-rw-r--r--dm/Makefile8
-rw-r--r--dm/pathnames.h10
2 files changed, 10 insertions, 8 deletions
diff --git a/dm/Makefile b/dm/Makefile
index 2b77c370..ea7c949e 100644
--- a/dm/Makefile
+++ b/dm/Makefile
@@ -9,13 +9,13 @@ MAN5= dm.conf.5
all: $(PROG)
$(PROG): $(SRCS)
- $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -DSUPPORT_UTMPX
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -DSUPPORT_UTMPX -I$(ROOT)
$(STRIP) $(PROG)
install: $(PROG) $(MAN)
- $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
- $(GINSTALL) -Dm644 $(MAN8) $(DESTDIR)/usr/share/man/man8/$(MAN8)
- $(GINSTALL) -Dm644 $(MAN5) $(DESTDIR)/usr/share/man/man5/$(MAN5)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN8) $(DESTDIR)/$(PREFIX)/share/man/man8/$(MAN8)
+ $(GINSTALL) -Dm644 $(MAN5) $(DESTDIR)/$(PREFIX)/share/man/man5/$(MAN5)
clean:
rm -f $(CLEANFILES) $(PROG)
diff --git a/dm/pathnames.h b/dm/pathnames.h
index 9acdc5cd..3c768c36 100644
--- a/dm/pathnames.h
+++ b/dm/pathnames.h
@@ -31,7 +31,9 @@
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
*/
-#define _PATH_CONFIG "/etc/dm.conf"
-#define _PATH_HIDE "/usr/games/hide/"
-#define _PATH_LOG "/var/log/games.log"
-#define _PATH_NOGAMES "/etc/nogames"
+#include "config.h"
+
+#define _PATH_CONFIG SYSCONFDIR"/dm.conf"
+#define _PATH_HIDE PREFIX"/games/hide/"
+#define _PATH_LOG LOCALSTATEDIR"/log/games.log"
+#define _PATH_NOGAMES SYSCONFDIR"/nogames"