tools/Makefile

changeset 635
bf2c0f31147b
parent 633
8b84e73af50e
child 636
80967361f257
equal deleted inserted replaced
634:0a7dfeaf385c 635:bf2c0f31147b
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 ${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \ 20 @mkdir -p ${DESTDIR}/etc/init.d ; \
21 echo "${INSTALL} -c -g root -o root -m 0755 init.debian /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 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \ 23 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \
23 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \ 24 echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \
24 elif [ -f /etc/slackware-version ]; then \ 25 elif [ -f /etc/slackware-version ]; then \
26 @mkdir -p ${DESTDIR}/etc/rc.d ; \
25 ${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 ; \
26 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" ; \
27 else \ 29 else \
28 echo "Unsupported distribution" ; \ 30 echo "Unsupported distribution" ; \
29 fi 31 fi

mercurial