Thu, 12 Oct 2023 14:19:46 +0200
Version 0.3.44. Moved iSpindel Plato calculation from the php script to bmsd. This uses calibration data in the mon_ispindels table. Setup of this data will be done by the bmsapp applications. Default settings are stored in MySQL. From now on you don't need to store calibration data in the iSpindel.
574 | 1 | # Makefile for the mbsePi-apps/thermferm. |
2 | ||
3 | include ../Makefile.global | |
4 | ||
5 | OTHER = Makefile bmsd.init | |
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 \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
25 | ${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/bmsd ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
26 | echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/bmsd" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
27 | ${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/log/setup/setup.bmsd ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
28 | echo "${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/log/setup/setup.bmsd" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
29 | else \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
30 | echo "Unsupported distribution" ; \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
574
diff
changeset
|
31 | fi |
574 | 32 | |
33 | filelist: Makefile | |
34 | BASE=`pwd`; \ | |
35 | BASE=`basename $${BASE}`; \ | |
36 | (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist | |
37 | ||
38 | depend: |