-GINSTALL ?= install
PREFIX ?= /usr
DESTDIR ?=
install: install-adduser install-rmuser
install-adduser: adduser.sh adduser.8 adduser.conf.5
- $(GINSTALL) -Dm755 adduser.sh $(DESTDIR)/$(PREFIX)/sbin/adduser
- $(GINSTALL) -Dm644 adduser.8 $(DESTDIR)/$(PREFIX)/share/man/man8/adduser.8
- $(GINSTALL) -Dm644 adduser.conf.5 $(DESTDIR)/$(PREFIX)/share/man/man5/adduser.conf.5
+ install -d $(DESTDIR)/$(PREFIX)/sbin \
+ $(DESTDIR)/$(PREFIX)/share/man/man5 \
+ $(DESTDIR)/$(PREFIX)/share/man/man8
+ install -m755 adduser.sh $(DESTDIR)/$(PREFIX)/sbin/adduser
+ install -m644 adduser.8 $(DESTDIR)/$(PREFIX)/share/man/man8/adduser.8
+ install -m644 adduser.conf.5 $(DESTDIR)/$(PREFIX)/share/man/man5/adduser.conf.5
install-rmuser: rmuser.sh rmuser.8
- $(GINSTALL) -Dm755 rmuser.sh $(DESTDIR)/$(PREFIX)/sbin/rmuser
- $(GINSTALL) -Dm644 rmuser.8 $(DESTDIR)/$(PREFIX)/share/man/man8/rmuser.8
+ install -d $(DESTDIR)/$(PREFIX)/sbin \
+ $(DESTDIR)/$(PREFIX)/share/man/man8
+ install -m755 rmuser.sh $(DESTDIR)/$(PREFIX)/sbin/rmuser
+ install -m644 rmuser.8 $(DESTDIR)/$(PREFIX)/share/man/man8/rmuser.8
.PHONY: all install install-adduser install-rmuser clean
LDID ?= ldid
CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
LDFLAGS ?=
-GINSTALL ?= install
PREFIX ?= /usr
DESTDIR ?=
$(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
LDID ?= ldid
CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
LDFLAGS ?=
-GINSTALL ?= install
PREFIX ?= /usr
DESTDIR ?=
$(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)