summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
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 /chpass/Makefile
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 'chpass/Makefile')
-rw-r--r--chpass/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 1715a4c..6ca375a 100644
--- a/chpass/Makefile
+++ b/chpass/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 ?=
@@ -29,10 +28,12 @@ chpass: $(SRC:%.c=%.o) ../ent.xml
$(CC) $(CFLAGS) -c -o $@ $< -I. -I../libutil -I../libc/gen
install-chpass: chpass chpass.1
- $(GINSTALL) -Dm4555 chpass $(DESTDIR)/$(PREFIX)/bin/chpass
+ install -d $(DESTDIR)/$(PREFIX)/bin \
+ $(DESTDIR)/$(PREFIX)/share/man/man1
+ install -m4555 chpass $(DESTDIR)/$(PREFIX)/bin/chpass
ln -sf chpass $(DESTDIR)/$(PREFIX)/bin/chfn
ln -sf chpass $(DESTDIR)/$(PREFIX)/bin/chsh
- $(GINSTALL) -Dm644 chpass.1 $(DESTDIR)/$(PREFIX)/share/man/man1/chpass.1
+ install -Dm644 chpass.1 $(DESTDIR)/$(PREFIX)/share/man/man1/chpass.1
ln -sf chpass.1.zst $(DESTDIR)/$(PREFIX)/share/man/man1/chfn.1
ln -sf chpass.1.zst $(DESTDIR)/$(PREFIX)/share/man/man1/chsh.1