aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 5694e9af651c76509ddfe8ec97686a98830abf1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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,@STAT\@,$(STAT),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