--- a/Makefile Fri Mar 13 11:33:39 2009 +0100
+++ b/Makefile Fri Mar 13 14:00:53 2009 +0100
@@ -5,7 +5,7 @@
initdir = /etc/init.d
defaultdir = /etc/default
-all: tele-watch tele-watch.8.gz init.d
+all: tele-watch tele-watch.8.gz init.d default
install: all
install -m 0755 -d ${DESTDIR}${sbindir}
install -m 0755 tele-watch ${DESTDIR}${sbindir}/
@@ -13,16 +13,18 @@
install -m 0755 -d ${DESTDIR}${man8dir}
install -m 0644 tele-watch.8.gz ${DESTDIR}${man8dir}
- #test -f ${DESTDIR}${initdir}/tele-watcher \
- #|| install -m 0755 init.d ${DESTDIR}${initdir}/tele-watcher
- #test -f ${DESTDIR}${defaultdir}/tele-watcher \
- #|| install -m 0644 default ${DESTDIR}${defaultdir}/tele-watcher
+ -tools/unchanged ${DESTDIR}${initdir}/tele-watcher \
+ && install -m 0755 init.d ${DESTDIR}${initdir}/tele-watcher
+
+ -tools/unchanged ${DESTDIR}${defaultdir}/tele-watcher \
+ && install -m 0644 default ${DESTDIR}${defaultdir}/tele-watcher
clean:
- -rm -f tele-watch.8.gz tele-watch
+ -rm -f tele-watch.8.gz tele-watch default init.d
%: %.in
perl -pe 's{__sbindir__}{${sbindir}}g' <$< >$@
+ echo "# `sha1sum $@`" >>$@
%: %.pl
perl -c $<