9 SUBDIRS = $(SUB_tcl) $(SUB_python)
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 ruby/CHANGES ruby/README ruby/extconf.rb ruby/main.c ruby/test.rb
17 # add the following to the all target
18 all-local: @COMP_PERL@ @COMP_RUBY@
21 test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true
22 test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
23 test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true
25 # rules for buildung the ruby module
27 cd ruby && $(RUBY) extconf.rb && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS)
29 # rules for building the perl module
30 perl_piped: perl-piped/Makefile
31 cd perl-piped && $(MAKE)
33 perl-piped/Makefile: perl-piped/Makefile.PL
34 cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
36 perl_shared: perl-shared/Makefile
37 cd perl-shared && $(MAKE)
39 perl-shared/Makefile: perl-shared/Makefile.PL
40 cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS) RPATH=$(exec_prefix)/lib
41 # LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
44 test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || true
45 test -f perl-piped/Makefile && rm perl-piped/Makefile || true
46 test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || true
47 test -f perl-shared/Makefile && rm -f perl-shared/Makefile || true
48 test -f ruby/Makefile && cd ruby && $(MAKE) clean && rm Makefile || true