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 /phantasia/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 'phantasia/Makefile')
-rw-r--r-- | phantasia/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phantasia/Makefile b/phantasia/Makefile index 3792164c..c0a4484a 100644 --- a/phantasia/Makefile +++ b/phantasia/Makefile @@ -5,7 +5,7 @@ PROG= phantasia SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c MAN= phantasia.6 -FILESDIR=/var/games/phantasia +FILESDIR=$(LOCALSTATEDIR)/games/phantasia FILESMODE=0660 ALLFILES=gold lastdead mess monsters void motd characs scoreboard FILES=gold lastdead mess monsters void motd @@ -21,7 +21,7 @@ files.stamp: mkdata monsters.asc touch files.stamp mkdata: phantglobs.c setup.c - clang -o mkdata phantglobs.c setup.c + clang -o mkdata phantglobs.c setup.c -I$(ROOT) # Make Phantasia map. Change the map commands reflect your installation. # PLOTDEVICE is used for plotting the map. Change as appropriate. @@ -31,14 +31,14 @@ map: map.c ./map | plot > /dev/tty $(PROG): $(SRCS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT) $(STRIP) $(PROG) $(ALLFILES): $(FILES) install: $(PROG) $(MAN) $(ALLFILES) - $(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) -Dm$(FILESMODE) $(ALLFILES) $(DESTDIR)$(FILESDIR) |