misc fixes to get rrdtool working without included libraries.
[rrdtool.git] / bindings / Makefile.am
1 SUBDIRS = tcl
2
3 # the following files are not mentioned in any other Makefile
4 EXTRA_DIST = $(shell for A in perl-*; do cat $$A/MANIFEST | sed -e s,^,$$A/, ; done)
5
6 # lets schedule the perl stuff for installation
7 # the special call to install-sh is because the -d switch is not portable
8 install-data-local:
9         ../config/mkinstalldirs $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
10         $(INSTALL) -m 644 perl-piped/RRDp.pm $(DESTDIR)$(prefix)/lib/perl
11         $(INSTALL) -m 644 perl-shared/RRDs.pm $(DESTDIR)$(prefix)/lib/perl
12         $(INSTALL) -m 644 perl-shared/blib/arch/auto/RRDs/RRDs.bs $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
13         $(INSTALL) -m 755 perl-shared/blib/arch/auto/RRDs/RRDs.@SO_EXT@ $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
14
15 # add the following to the all target
16 all-local:      @COMP_PERL@
17
18 # rules for building the perl module
19 perl_piped: perl-piped/Makefile
20         cd perl-piped && $(MAKE)
21
22 perl-piped/Makefile: perl-piped/Makefile.PL
23         cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
24
25 perl_shared: perl-shared/Makefile
26         cd perl-shared && $(MAKE)
27
28 perl-shared/Makefile: perl-shared/Makefile.PL
29         cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
30
31 clean-local:
32         cd perl-piped && test -f Makefile && $(MAKE) clean || true
33         cd perl-shared && test -f Makefile && $(MAKE) clean || true
34
35 ##END##