Create installation directories

Thu, 14 Mar 2024 19:32:37 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 14 Mar 2024 19:32:37 +0100
changeset 635
bf2c0f31147b
parent 634
0a7dfeaf385c
child 636
80967361f257

Create installation directories

brewpanel/Makefile file | annotate | diff | comparison | revisions
thermferm/Makefile file | annotate | diff | comparison | revisions
tools/Makefile file | annotate | diff | comparison | revisions
--- a/brewpanel/Makefile	Thu Mar 14 17:10:14 2024 +0100
+++ b/brewpanel/Makefile	Thu Mar 14 19:32:37 2024 +0100
@@ -23,6 +23,7 @@
 		rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
 
 install:	all
+		@mkdir -p ${DESTDIR}${BINDIR}
 		${INSTALL} -c -s -g root -o root -m 0755 brewpanel ${DESTDIR}${BINDIR}
 
 filelist:	Makefile
--- a/thermferm/Makefile	Thu Mar 14 17:10:14 2024 +0100
+++ b/thermferm/Makefile	Thu Mar 14 19:32:37 2024 +0100
@@ -23,6 +23,7 @@
 		rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
 
 install:	all
+		@mkdir -p ${DESTDIR}${BINDIR}
 		${INSTALL} -c -s -g root -o root -m 0755 thermferm ${DESTDIR}${BINDIR}
 
 filelist:	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 \

mercurial