scripts/Makefile: respect SBINDIR with MKSYSVINIT

This is for #142.
This commit is contained in:
udeved 2017-06-09 21:58:59 +02:00 committed by William Hubbs
parent 11243f85b6
commit 5b7667af32

View File

@ -19,11 +19,11 @@ ifeq (${OS},Linux)
${INSTALL} -d ${DESTDIR}${SBINDIR} ${INSTALL} -d ${DESTDIR}${SBINDIR}
ln -sf ../${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat ln -sf ../${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat
ifeq (${MKSYSVINIT},yes) ifeq (${MKSYSVINIT},yes)
ln -sf ../${DIR}/halt ${DESTDIR}/sbin/halt ln -sf ../${DIR}/halt ${DESTDIR}/${SBINDIR}/halt
ln -sf ../${DIR}/poweroff ${DESTDIR}/sbin/poweroff ln -sf ../${DIR}/poweroff ${DESTDIR}/${SBINDIR}/poweroff
ln -sf ../${DIR}/reboot ${DESTDIR}/sbin/reboot ln -sf ../${DIR}/reboot ${DESTDIR}/${SBINDIR}/reboot
ln -sf ../${DIR}/shutdown ${DESTDIR}/sbin/shutdown ln -sf ../${DIR}/shutdown ${DESTDIR}/${SBINDIR}/shutdown
ln -sf openrc-init ${DESTDIR}/sbin/init ln -sf openrc-init ${DESTDIR}/${SBINDIR}/init
endif endif
endif endif