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,@pkglibdir\@,$(pkglibdir),g" \
18 -e "s,@sbindir\@,$(sbindir),g" \
19 -e "s,@exec_prefix\@,$(exec_prefix),g" \
20 -e "s,@prefix\@,$(prefix),g"
22 cron.d/backupninja: cron.d/backupninja.in
23 rm -f cron.d/backupninja
24 $(edit) cron.d/backupninja.in > cron.d/backupninja
25 chmod 644 cron.d/backupninja
27 logrotate.d/backupninja: logrotate.d/backupninja.in
28 rm -f logrotate.d/backupninja
29 $(edit) logrotate.d/backupninja.in > logrotate.d/backupninja
30 chmod ugo+x logrotate.d/backupninja
32 backupninja.conf: backupninja.conf.in
33 rm -f backupninja.conf
34 $(edit) backupninja.conf.in > backupninja.conf
37 # for a in $(EXAMPLES); do \
38 # chmod 755 $(sysconfdir)/$(a); \