summaryrefslogtreecommitdiffstats
path: root/cribbage/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cribbage/Makefile')
-rw-r--r--cribbage/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/cribbage/Makefile b/cribbage/Makefile
index 19c2a387..45f9c718 100644
--- a/cribbage/Makefile
+++ b/cribbage/Makefile
@@ -10,13 +10,13 @@ FILESNAME=cribbage.instr
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) -Dm644 $(FILES) $(DESTDIR)/usr/share/games/$(FILESNAME)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+ $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)/$(PREFIX)/share/games/$(FILESNAME)
clean:
rm -f $(CLEANFILES) $(PROG)