diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-03-28 14:39:02 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-03-28 14:39:02 -0400 |
commit | 23454acb66be2a88647262d98d50e0f115519ea0 (patch) | |
tree | c593751ce3649be2e502fac3e080d6c0045b9fa0 /warp/Makefile | |
parent | 08eca96e71d96ad1f8e9b888875ab5570f208d19 (diff) | |
download | bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.gz bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.zst bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.zip |
Use PREFIX now
Diffstat (limited to 'warp/Makefile')
-rw-r--r-- | warp/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/warp/Makefile b/warp/Makefile index 0e674c14..855b68af 100644 --- a/warp/Makefile +++ b/warp/Makefile @@ -11,17 +11,17 @@ CLEANFILES+=warp.6 MAN= warp.6 FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7 -FILESDIR=/usr/share/games/warp +FILESDIR=$(PREFIX)/share/games/warp all: $(PROG) $(MAN) $(FILES) $(PROG): $(SRCS) - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT) $(STRIP) $(PROG) install: $(PROG) $(MAN) $(FILES) - $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/usr/games/$(PROG) - $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) $(GINSTALL) -d $(DESTDIR)$(FILESDIR) $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR) @@ -56,6 +56,6 @@ smap.7: smp.7 sm ./sm < smp.7 > $@ sm: sm.c - clang -o $@ sm.c + clang -o $@ sm.c -I$(ROOT) .PHONY: all clean install |