Thu, 14 Mar 2024 17:07:09 +0100
Add DESTDIR installation target. Some kicad update again. Moved init script to /etc/rc.d
551
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | # Makefile for the mbsePi-apps/thermferm. |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | include ../Makefile.global |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | |
633
8b84e73af50e
Add DESTDIR installation target. Some kicad update again. Moved init script to /etc/rc.d
Michiel Broek <mbroek@mbse.eu>
parents:
612
diff
changeset
|
5 | OTHER = Makefile init.debian init.slackware |
551
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | ############################################################################# |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | .c.o: |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | all: |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | clean: |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | install: |
612
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
19 | @if [ -x /lib/systemd/systemd ]; then \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
20 | ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
21 | echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm" ; \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
22 | [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
23 | echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
24 | elif [ -f /etc/slackware-version ]; then \ |
633
8b84e73af50e
Add DESTDIR installation target. Some kicad update again. Moved init script to /etc/rc.d
Michiel Broek <mbroek@mbse.eu>
parents:
612
diff
changeset
|
25 | ${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm ; \ |
8b84e73af50e
Add DESTDIR installation target. Some kicad update again. Moved init script to /etc/rc.d
Michiel Broek <mbroek@mbse.eu>
parents:
612
diff
changeset
|
26 | echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \ |
612
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
27 | else \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
28 | echo "Unsupported distribution" ; \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
559
diff
changeset
|
29 | fi |
551
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | filelist: Makefile |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | BASE=`pwd`; \ |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | BASE=`basename $${BASE}`; \ |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | depend: |