summaryrefslogtreecommitdiffstats
path: root/tetris/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tetris/Makefile')
-rw-r--r--tetris/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tetris/Makefile b/tetris/Makefile
index aeda79a9..ebec48b6 100644
--- a/tetris/Makefile
+++ b/tetris/Makefile
@@ -8,13 +8,13 @@ MAN= tetris.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) -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)