aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2005-10-26 23:15:26 +0000
committerMicah Anderson <micah@riseup.net>2005-10-26 23:15:26 +0000
commitd25ad9338731a83d00dd35d895e476060a806d87 (patch)
tree721b73ed5da57785ae4fe1b662bf7452fbe07ca3 /src/Makefile.am
parent419cc1a74c53cd20f67e1bf467fdb9dc93b8720e (diff)
downloadbackupninja-d25ad9338731a83d00dd35d895e476060a806d87.tar.gz
backupninja-d25ad9338731a83d00dd35d895e476060a806d87.tar.bz2
Add more Makefile templates
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..d0c77fc
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,27 @@
+# tyhle vygenerujeme ...
+sbin_SCRIPTS = backupninja ninjahelper
+
+# a proto je taky musíme smazat ...
+CLEANFILES = $(sbin_SCRIPTS)
+
+EXTRA_DIST = backupninja.in ninjahelper.in
+
+edit = sed \
+ -e "s,@CFGDIR\@,$(CFGDIR),g" \
+ -e "s,@BASH\@,$(BASH),g" \
+ -e 's,@datadir\@,$(pkgdatadir),g' \
+ -e 's,@localstatedir\@,$(localstatedir),g' \
+ -e 's,@prefix\@,$(prefix),g'
+
+#install-exec-hook:
+
+backupninja: $(srcdir)/backupninja.in
+ rm -f backupninja
+ $(edit) $(srcdir)/backupninja.in > backupninja
+ chmod ugo+x backupninja
+
+ninjahelper: $(srcdir)/ninjahelper.in
+ rm -f ninjahelper
+ $(edit) $(srcdir)/ninjahelper.in > ninjahelper
+ chmod ugo+x ninjahelper
+