diff -r 0a7dfeaf385c -r bf2c0f31147b tools/Makefile --- a/tools/Makefile Thu Mar 14 17:10:14 2024 +0100 +++ b/tools/Makefile Thu Mar 14 19:32:37 2024 +0100 @@ -17,11 +17,13 @@ install: @if [ -x /lib/systemd/systemd ]; then \ - ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \ - echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm" ; \ + @mkdir -p ${DESTDIR}/etc/init.d ; \ + ${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm ; \ + echo "${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm" ; \ [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ elif [ -f /etc/slackware-version ]; then \ + @mkdir -p ${DESTDIR}/etc/rc.d ; \ ${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm ; \ echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \ else \