summaryrefslogtreecommitdiffstats
path: root/pw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pw/Makefile')
-rw-r--r--pw/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/pw/Makefile b/pw/Makefile
index dc57d1d..c282e62 100644
--- a/pw/Makefile
+++ b/pw/Makefile
@@ -3,7 +3,6 @@ STRIP ?= aarch64-apple-darwin-strip
LDID ?= ldid
CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
LDFLAGS ?=
-GINSTALL ?= install
PREFIX ?= /usr
DESTDIR ?=
@@ -46,10 +45,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
- $(GINSTALL) -Dm755 pw $(DESTDIR)/$(PREFIX)/sbin/pw
- $(GINSTALL) -Dm644 pw.8 $(DESTDIR)/$(PREFIX)/share/man/man8/pw.8
- $(GINSTALL) -Dm644 pw.conf.5 $(DESTDIR)/$(PREFIX)/share/man/man5/pw.conf.5
- mkdir -p $(DESTDIR)/$(PREFIX)/share/skel
+ 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
clean:
rm -f pw $(SRC:%.c=%.o) $(LIBCSRC:%.c=%.o) $(LIBUTILSRC:%.c=%.o)