f55119617a7383ec59e46ca0f5a8f124e8683262
[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 # lets schedule the perl stuff for installation
6 # the special call to install-sh is because the -d switch is not portable
7 install-data-local:
8         $(mkinstalldirs) $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
9         $(INSTALL) -m 644 perl-piped/RRDp.pm $(DESTDIR)$(prefix)/lib/perl
10         $(INSTALL) -m 644 perl-shared/RRDs.pm $(DESTDIR)$(prefix)/lib/perl
11         $(INSTALL) -m 644 perl-shared/blib/arch/auto/RRDs/RRDs.bs $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
12         $(INSTALL) -m 755 perl-shared/blib/arch/auto/RRDs/RRDs.@SO_EXT@ $(DESTDIR)$(prefix)/lib/perl/auto/RRDs
13
14 # add the following to the all target
15 all-local:      @COMP_PERL@
16
17 # rules for building the perl module
18 perl_piped: perl-piped/Makefile
19         cd perl-piped && $(MAKE)
20
21 perl-piped/Makefile: perl-piped/Makefile.PL
22         cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
23
24 perl_shared: perl-shared/Makefile
25         cd perl-shared && $(MAKE) RPATH=$(prefix)/lib
26
27 perl-shared/Makefile: perl-shared/Makefile.PL
28         cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
29
30 clean-local:
31         cd perl-piped && test -f Makefile && $(MAKE) clean || true
32         cd perl-shared && test -f Makefile && $(MAKE) clean || true
33
34 ##END##