15 clean: |
15 clean: |
16 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
16 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
17 |
17 |
18 install: |
18 install: |
19 @if [ -x /lib/systemd/systemd ]; then \ |
19 @if [ -x /lib/systemd/systemd ]; then \ |
20 @mkdir -p ${DESTDIR}/etc/init.d ; \ |
20 mkdir -p ${DESTDIR}/etc/init.d ; \ |
21 ${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm ; \ |
21 ${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm ; \ |
22 echo "${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm" ; \ |
22 echo "${INSTALL} -c -g root -o root -m 0755 init.debian ${DESTDIR}/etc/init.d/thermferm" ; \ |
23 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
23 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ |
24 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
24 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ |
25 elif [ -f /etc/slackware-version ]; then \ |
25 elif [ -f /etc/slackware-version ]; then \ |
26 @mkdir -p ${DESTDIR}/etc/rc.d ; \ |
26 mkdir -p ${DESTDIR}/etc/rc.d ; \ |
27 ${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 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm ; \ |
28 echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \ |
28 echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.thermferm" ; \ |
29 else \ |
29 else \ |
30 echo "Unsupported distribution" ; \ |
30 echo "Unsupported distribution" ; \ |
31 fi |
31 fi |