Fri, 03 May 2024 21:02:54 +0200
Adjusted for new generation thermferm controllers.
574 | 1 | # Makefile for the mbsePi-apps/thermferm. |
2 | ||
3 | include ../Makefile.global | |
4 | ||
855
2d328a2a4025
Fixed init scripts names in Makefile. Update crontasks to use the database to check the log entries for products.
Michiel Broek <mbroek@mbse.eu>
parents:
854
diff
changeset
|
5 | OTHER = Makefile init.slackware init.debian |
574 | 6 | |
7 | ############################################################################# | |
8 | ||
9 | .c.o: | |
10 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
11 | ||
12 | all: | |
13 | ||
14 | ||
15 | clean: | |
16 | rm -f filelist Makefile.bak | |
17 | ||
18 | install: | |
744
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
19 | @if [ -x /lib/systemd/systemd ]; then \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
20 | ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/bmsd ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
21 | echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/bmsd" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
22 | [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
23 | echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
24 | elif [ -f /etc/slackware-version ]; then \ |
854
548e5e9af0c6
Moved init script to /etc/rc.d and must now be installed in /etc/rc.d/rc.local
Michiel Broek <mbroek@mbse.eu>
parents:
744
diff
changeset
|
25 | ${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/rc.bmsd ; \ |
548e5e9af0c6
Moved init script to /etc/rc.d and must now be installed in /etc/rc.d/rc.local
Michiel Broek <mbroek@mbse.eu>
parents:
744
diff
changeset
|
26 | echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/rc.bmsd" ; \ |
744
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
27 | else \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
28 | echo "Unsupported distribution" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
29 | fi |
574 | 30 | |
31 | filelist: Makefile | |
32 | BASE=`pwd`; \ | |
33 | BASE=`basename $${BASE}`; \ | |
34 | (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist | |
35 | ||
36 | depend: |