Imported Upstream version 2.5.2p1
[debian/amanda] / dumper-src / Makefile.am
1 # Makefile for Amanda wrapper programs.
2
3 INCLUDES =      -I$(top_builddir)/common-src \
4                 -I$(top_srcdir)/common-src
5
6 dumper_SCRIPTS =        amgtar generic-dumper
7 dumperdir =             @DUMPER_DIR@
8
9 SUFFIXES =              .sh .pl
10
11 .pl:
12                         cat $< > $@
13                         chmod a+x $@
14                         -test -z "$(PERL)" || $(PERL) -c -w -W -T $@ || rm $@
15
16 .sh:
17                         cat $< > $@
18                         chmod a+x $@
19
20 DISTCLEANFILES = $(dumper_SCRIPTS)
21
22 # these are used for testing only:
23
24 install-data-hook:
25         @list="$(dumper_SCRIPTS)"; \
26         for p in $$list; do \
27                 pa=$(DESTDIR)$(dumperdir)/`echo $$p|sed '$(transform)'`; \
28                 echo chown $(BINARY_OWNER) $$pa; \
29                 chown $(BINARY_OWNER) $$pa; \
30                 echo chgrp $(SETUID_GROUP) $$pa; \
31                 chgrp $(SETUID_GROUP) $$pa; \
32         done
33