summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-03-28 14:39:02 -0400
committerCameron Katri <me@cameronkatri.com>2021-03-28 14:39:02 -0400
commit23454acb66be2a88647262d98d50e0f115519ea0 (patch)
treec593751ce3649be2e502fac3e080d6c0045b9fa0 /hunt
parent08eca96e71d96ad1f8e9b888875ab5570f208d19 (diff)
downloadbsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.gz
bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.tar.zst
bsdgames-darwin-23454acb66be2a88647262d98d50e0f115519ea0.zip
Use PREFIX now
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/Makefile6
-rw-r--r--hunt/huntd/Makefile6
-rw-r--r--hunt/include/pathnames.h4
3 files changed, 9 insertions, 7 deletions
diff --git a/hunt/hunt/Makefile b/hunt/hunt/Makefile
index 211b9619..8f898974 100644
--- a/hunt/hunt/Makefile
+++ b/hunt/hunt/Makefile
@@ -7,12 +7,12 @@ MAN= hunt.6
all: $(PROG)
$(PROG): $(SRCS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) $(EXTRADEFS) -I../include -lncursesw
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) $(EXTRADEFS) -I../include -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) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
clean:
rm -f $(CLEANFILES) $(PROG)
diff --git a/hunt/huntd/Makefile b/hunt/huntd/Makefile
index c90d71db..385bb5b2 100644
--- a/hunt/huntd/Makefile
+++ b/hunt/huntd/Makefile
@@ -8,12 +8,12 @@ MAN= huntd.6
all: $(PROG)
$(PROG): $(SRCS)
- $(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(EXTRADEFS) -I../include
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(EXTRADEFS) -I../include -I$(ROOT)
$(STRIP) $(PROG)
install: $(PROG) $(MAN)
- $(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)
clean:
rm -f $(CLEANFILES) $(PROG)
diff --git a/hunt/include/pathnames.h b/hunt/include/pathnames.h
index 2595c9a0..e8cdf276 100644
--- a/hunt/include/pathnames.h
+++ b/hunt/include/pathnames.h
@@ -30,6 +30,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#define PATH_HUNTD "/usr/games/huntd"
+#include "config.h"
+
+#define PATH_HUNTD PREFIX"/games/huntd"
#define PATH_HUNTSOCKET "/tmp/hunt"
#define PATH_STATSOCKET "/tmp/hunt.stats"