tools/Makefile

changeset 635
bf2c0f31147b
parent 633
8b84e73af50e
child 636
80967361f257
--- 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 \

mercurial