r3565@krups: intrigeri | 2005-11-16 20:43:44 +0100
[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,@pkglibdir\@,$(pkglibdir),g" \
18     -e "s,@sbindir\@,$(sbindir),g" \
19     -e "s,@exec_prefix\@,$(exec_prefix),g" \
20     -e "s,@prefix\@,$(prefix),g"
21
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 ugo+x cron.d/backupninja
26
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
31
32 backupninja.conf: backupninja.conf.in
33         rm -f backupninja.conf
34         $(edit) backupninja.conf.in > backupninja.conf
35
36 #install-data-hook:
37 #       for a in $(EXAMPLES); do \
38 #               chmod 755 $(sysconfdir)/$(a); \
39 #       done