commit 11c4f9b3a6c6665455ec0c3c929843c167fa6615 parent 0fa554bb37efa23713707861b47c3e6e758b434d Author: Cem Keylan <cem@ckyln.com> Date: Wed, 3 Jun 2020 16:56:27 +0300 makefile: use POSIX commands Diffstat:
M | Makefile | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -2,9 +2,11 @@ PREFIX = /usr/local BINDIR = ${PREFIX}/bin install: - install -Dm755 shinit ${DESTDIR}${BINDIR}/shinit - install -Dm755 poweroff ${DESTDIR}${BINDIR}/poweroff - ln -sf poweroff ${DESTDIR}${BINDIR}/reboot + mkdir -p ${DESTDIR}${BINDIR} + cp shinit poweroff ${DESTDIR}${BINDIR} + chmod 755 ${DESTDIR}${BINDIR}/shinit + chmod 755 ${DESTDIR}${BINDIR}/poweroff + ln -sf poweroff ${DESTDIR}${BINDIR}/reboot uninstall: rm -f ${DESTDIR}${BINDIR}/shinit \