2 EXTRA_DIST = backupninja.conf.in cron.d/backupninja.in \
3 logrotate.d/backupninja.in
5 GENERATED_FILES = backupninja.conf cron.d/backupninja logrotate.d/backupninja
7 CLEANFILES = $(GENERATED_FILES)
9 nobase_sysconf_DATA = $(GENERATED_FILES)
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"
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
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
31 backupninja.conf: backupninja.conf.in
32 rm -f backupninja.conf
33 $(edit) backupninja.conf.in > backupninja.conf
36 # for a in $(EXAMPLES); do \
37 # chmod 755 $(sysconfdir)/$(a); \