summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
Diffstat (limited to 'pw')
-rw-r--r--pw/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/pw/Makefile b/pw/Makefile
index 6aa6308..a673ef7 100644
--- a/pw/Makefile
+++ b/pw/Makefile
@@ -3,7 +3,8 @@ STRIP ?= aarch64-apple-darwin-strip
LDID ?= ldid
CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
LDFLAGS ?=
-PREFIX ?= $(MEMO_PREFIX)$(MEMO_SUB_PREFIX)
+MEMO_PREFIX ?=
+MEMO_SUB_PREFIX ?= /usr
DESTDIR ?=
SRC := pw_utils.c \
@@ -45,13 +46,13 @@ pw: $(SRC:%.c=%.o) $(LIBCSRC:%.c=%.o) $(LIBUTILSRC:%.c=%.o) ../ent.xml
$(CC) $(CFLAGS) -c -o $@ $< -I. -I../libutil -I../libc/gen
install-pw: pw pw.8 pw.conf.5
- install -d $(DESTDIR)/$(PREFIX)/share/skel \
- $(DESTDIR)/$(PREFIX)/sbin \
- $(DESTDIR)/$(PREFIX)/share/man/man5 \
- $(DESTDIR)/$(PREFIX)/share/man/man8
- install -m755 pw $(DESTDIR)/$(PREFIX)/sbin/pw
- install -m644 pw.8 $(DESTDIR)/$(PREFIX)/share/man/man8/pw.8
- install -m644 pw.conf.5 $(DESTDIR)/$(PREFIX)/share/man/man5/pw.conf.5
+ install -d $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/skel \
+ $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/sbin \
+ $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man5 \
+ $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man8
+ install -m755 pw $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/sbin/pw
+ install -m644 pw.8 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man8/pw.8
+ install -m644 pw.conf.5 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man5/pw.conf.5
clean:
rm -f pw $(SRC:%.c=%.o) $(LIBCSRC:%.c=%.o) $(LIBUTILSRC:%.c=%.o)