make rrdtool use rrd_config.h instead of config.h since this is just bound to lead...
[rrdtool.git] / bindings / Makefile.am
1 if BUILD_TCL
2 SUB_tcl = tcl
3 endif
4
5 if BUILD_PYTHON
6 SUB_python = python
7 endif
8
9 SUBDIRS = $(SUB_tcl) $(SUB_python)
10
11 # the following files are not mentioned in any other Makefile
12 EXTRA_DIST = perl-piped/MANIFEST perl-piped/README perl-piped/Makefile.PL perl-piped/RRDp.pm perl-piped/t/base.t \
13         perl-shared/ntmake.pl perl-shared/MANIFEST perl-shared/README perl-shared/Makefile.PL perl-shared/RRDs.pm  perl-shared/RRDs.xs perl-shared/t/base.t
14
15
16 # add the following to the all target
17 all-local:  @COMP_PERL@
18
19 install-data-local:
20         test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true
21         test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
22
23 # rules for building the perl module
24 perl_piped: perl-piped/Makefile
25         cd perl-piped && $(MAKE)
26
27 perl-piped/Makefile: perl-piped/Makefile.PL
28         cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
29
30 perl_shared: perl-shared/Makefile
31         cd perl-shared && $(MAKE)
32
33 perl-shared/Makefile: perl-shared/Makefile.PL
34         cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS) RPATH=$(exec_prefix)/lib
35 # LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
36
37 clean-local:
38         test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || true
39         test -f perl-piped/Makefile && rm perl-piped/Makefile || true
40         test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || true
41         test -f perl-shared/Makefile && rm -f perl-shared/Makefile || true 
42
43 ##END##