Thu, 13 May 2021 13:49:04 +0200
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
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 | |
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
|
5 | OTHER = Makefile init.debian init.slackware setup.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 \ |
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
|
25 | ${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/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
|
26 | echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/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
|
27 | ${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.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
|
28 | echo "${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.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
|
29 | 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
|
30 | 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
|
31 | fi |
551
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | filelist: Makefile |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | BASE=`pwd`; \ |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | BASE=`basename $${BASE}`; \ |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | (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
|
37 | |
3721f9c08843
Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | depend: |