Makefile: install example dbuscrontab file into /etc
authorKonstantin Stepanov <kstep@p-nut.info>
Sun, 12 Dec 2010 15:24:27 +0000 (17:24 +0200)
committerKonstantin Stepanov <kstep@p-nut.info>
Sun, 12 Dec 2010 15:24:27 +0000 (17:24 +0200)
Makefile

index fd880c1..8ab516d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ install:
        python$(PYVERSION) -O -c 'import dbuscron'
        install -o root -g root -m 0644 ./dbuscron/*.$(PYSUFFIX) $(PYMODULES)/dbuscron
        install -o root -g root -m 0644 ./event.d/dbuscron $(DESTDIR)/etc/event.d/dbuscron
-       touch $(DESTDIR)/etc/dbuscrontab
+       test ! -f $(DESTDIR)/etc/dbuscrontab && \
+               install -o root -g root -m 0644 ./doc/dbuscrontab $(DESTDIR)/etc/dbuscrontab
        @echo "Installation complete. Run \`dbuscrontab -e' to edit config file,"
        @echo "then run \`initctl start dbuscron' to start dbuscron daemon."