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