summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
diff options
context:
space:
mode:
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