summaryrefslogtreecommitdiffstats
path: root/dm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dm/Makefile')
-rw-r--r--dm/Makefile8
1 files changed, 4 insertions, 4 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)