1 --- rrdtool-1.2.23/bindings/Makefile.am
2 +++ rrdtool-1.2.23/bindings/Makefile.am
5 +.PHONY: python ruby perl_piped perl_shared
10 # add the following to the all target
11 all-local: @COMP_PERL@ @COMP_RUBY@ @COMP_PYTHON@
14 - test -f perl-piped/Makefile && cd perl-piped && $(MAKE) install || true
15 - test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
16 - test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true
17 - test -d python/build && cd python && env LIBDIR=$(libdir) $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true
18 +install-exec-local: install-perl install-ruby install-python
20 +install-perl: install-perl-piped install-perl-shared
22 +install-perl-piped: @COMP_PERL@
23 + test -n "@COMP_PERL@" || exit 0 ; \
24 + cd perl-piped && $(MAKE) install
26 +install-perl-shared: @COMP_PERL@
27 + test -n "@COMP_PERL@" || exit 0 ; \
28 + cd perl-shared && $(MAKE) install
30 +install-ruby: @COMP_RUBY@
31 + test -n "@COMP_RUBY@" || exit 0 ; \
32 + cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install
34 +# need to delete "build" as it will have RPATHs
35 +# encoded in it for the local compile
36 +install-python: @COMP_PYTHON@
37 + test -n "@COMP_PYTHON@" || exit 0 ; \
38 + cd python && rm -rf build && env LIBDIR=$(libdir) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix)
40 # rules for buildung the ruby module