diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..3d5bdb8 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,34 @@ +# tyhle vygenerujeme ... +sbin_SCRIPTS = backupninja ninjahelper + +# a proto je taky musÃme smazat ... +CLEANFILES = $(sbin_SCRIPTS) + +EXTRA_DIST = backupninja.in ninjahelper.in ninjareport.in + +edit = sed \ + -e "s,@CFGDIR\@,$(CFGDIR),g" \ + -e "s,@BASH\@,$(BASH),g" \ + -e "s,@AWK\@,$(AWK),g" \ + -e "s,@SED\@,$(SED),g" \ + -e 's,@datadir\@,$(pkgdatadir),g' \ + -e "s,@libdir\@,$(pkglibdir),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 + +ninjareport: $(srcdir)/ninjareport.in + rm -f ninjareport + $(edit) $(srcdir)/ninjareport.in > ninjareport + chmod ugo+x ninjareport |