prep for 1.2rc4 release
[rrdtool.git] / bindings / Makefile.am
1 SUBDIRS = tcl 
2 # the following files are not mentioned in any other Makefile
3 EXTRA_DIST = $(shell for A in perl-*; do cat $$A/MANIFEST | sed -e "s,^,$$A/," ; done)
4
5 # add the following to the all target
6 all-local:  @COMP_PERL@
7
8 install-data-local:
9         cd perl-piped && test -f Makefile && $(MAKE) install || true
10         cd perl-shared && test -f Makefile && $(MAKE) install || true
11
12 # rules for building the perl module
13 perl_piped: perl-piped/Makefile
14         cd perl-piped && $(MAKE)
15
16 perl-piped/Makefile: perl-piped/Makefile.PL
17         cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
18
19 perl_shared: perl-shared/Makefile
20         cd perl-shared && $(MAKE) RPATH=$(exec_prefix)/lib
21
22 perl-shared/Makefile: perl-shared/Makefile.PL
23         cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
24 # LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
25
26 clean-local:
27         cd perl-piped && test -f Makefile && $(MAKE) clean || true
28         cd perl-shared && test -f Makefile && $(MAKE) clean || true
29
30 ##END##