19 |
19 |
20 clean: |
20 clean: |
21 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
21 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
22 |
22 |
23 install: |
23 install: |
24 ${INSTALL} -c -s -g root -o root -m 0755 thermferm.init /etc/init.d/thermferm |
24 ${INSTALL} -c -g root -o root -m 0755 thermferm.init /etc/init.d/thermferm |
|
25 [ -x /bin/systemctl ] && /bin/systemctl daemon-reload |
25 |
26 |
26 filelist: Makefile |
27 filelist: Makefile |
27 BASE=`pwd`; \ |
28 BASE=`pwd`; \ |
28 BASE=`basename $${BASE}`; \ |
29 BASE=`basename $${BASE}`; \ |
29 (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
30 (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |