Moving to less fun layout, more useful outcome
[matthijs/upstream/backupninja.git] / etc / Makefile.am
1
2 EXTRA_DIST = backupninja.conf.in cron.d/backupninja.in \
3         logrotate.d/backupninja.in
4
5 GENERATED_FILES = backupninja.conf cron.d/backupninja logrotate.d/backupninja
6
7 CLEANFILES = $(GENERATED_FILES)
8
9 nobase_sysconf_DATA = $(GENERATED_FILES)
10
11 edit = sed \
12     -e "s,@BASH\@,$(BASH),g" \
13     -e "s,@CFGDIR\@,$(CFGDIR),g" \
14     -e "s,@sysconfdir\@,$(sysconfdir),g" \
15     -e "s,@localstatedir\@,$(localstatedir),g" \
16     -e "s,@pkgdatadir\@,$(pkgdatadir),g" \
17     -e "s,@sbindir\@,$(sbindir),g" \
18     -e "s,@exec_prefix\@,$(exec_prefix),g" \
19     -e "s,@prefix\@,$(prefix),g"
20
21 cron.d/backupninja: cron.d/backupninja.in
22         rm -f cron.d/backupninja
23         $(edit) cron.d/backupninja.in > cron.d/backupninja
24         chmod ugo+x cron.d/backupninja
25
26 logrotate.d/backupninja: logrotate.d/backupninja.in
27         rm -f logrotate.d/backupninja
28         $(edit) logrotate.d/backupninja.in > logrotate.d/backupninja
29         chmod ugo+x logrotate.d/backupninja
30
31 backupninja.conf: backupninja.conf.in
32         rm -f backupninja.conf
33         $(edit) backupninja.conf.in > backupninja.conf
34
35 #install-data-hook:
36 #       for a in $(EXAMPLES); do \
37 #               chmod 755 $(sysconfdir)/$(a); \
38 #       done