summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-08-25 18:59:18 -0400
committerCameron Katri <me@cameronkatri.com>2021-08-28 00:56:27 -0400
commitfc3eccc659518306f05140eb24e525992f9d9993 (patch)
treedc4138e5d12a69d254e5f34fcec6fa4ac39947df /pw
parent6c82c7a42844fe897a1b37dbd4e0fca97113e9d0 (diff)
downloadpw-darwin-fc3eccc659518306f05140eb24e525992f9d9993.tar.gz
pw-darwin-fc3eccc659518306f05140eb24e525992f9d9993.tar.zst
pw-darwin-fc3eccc659518306f05140eb24e525992f9d9993.zip
Make all calls to install POSIX
Diffstat (limited to 'pw')
-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)