1 # Makefile for the mbsePi-apps/thermferm. |
1 # Makefile for the mbsePi-apps/thermferm. |
2 |
2 |
3 include ../Makefile.global |
3 include ../Makefile.global |
4 |
4 |
5 OTHER = Makefile init.debian init.slackware setup.slackware |
5 OTHER = Makefile init.debian init.slackware |
6 |
6 |
7 ############################################################################# |
7 ############################################################################# |
8 |
8 |
9 .c.o: |
9 .c.o: |
10 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
10 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
20 ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \ |
20 ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \ |
21 echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm" ; \ |
21 echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm" ; \ |
22 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
22 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
23 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
23 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
24 elif [ -f /etc/slackware-version ]; then \ |
24 elif [ -f /etc/slackware-version ]; then \ |
25 ${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/thermferm ; \ |
25 ${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm ; \ |
26 echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/thermferm" ; \ |
26 echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \ |
27 ${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.thermferm ; \ |
|
28 echo "${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.thermferm" ; \ |
|
29 else \ |
27 else \ |
30 echo "Unsupported distribution" ; \ |
28 echo "Unsupported distribution" ; \ |
31 fi |
29 fi |
32 |
30 |
33 filelist: Makefile |
31 filelist: Makefile |