initial import
[patches.git] / rrdtool-bindings-build-cleanup.patch
1 --- rrdtool-1.2.23/bindings/Makefile.am
2 +++ rrdtool-1.2.23/bindings/Makefile.am
3 @@ -1,4 +1,4 @@
4 -.PHONY: python ruby
5 +.PHONY: python ruby perl_piped perl_shared
6
7 if BUILD_TCL
8 SUB_tcl = tcl
9 @@ -16,11 +16,27 @@
10 # add the following to the all target
11 all-local: @COMP_PERL@ @COMP_RUBY@ @COMP_PYTHON@
12
13 -install-data-local:
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
19 +
20 +install-perl: install-perl-piped install-perl-shared
21 +
22 +install-perl-piped: @COMP_PERL@
23 + test -n "@COMP_PERL@" || exit 0 ; \
24 + cd perl-piped && $(MAKE) install
25 +
26 +install-perl-shared: @COMP_PERL@
27 + test -n "@COMP_PERL@" || exit 0 ; \
28 + cd perl-shared && $(MAKE) install
29 +
30 +install-ruby: @COMP_RUBY@
31 + test -n "@COMP_RUBY@" || exit 0 ; \
32 + cd ruby && $(MAKE) EPREFIX=$(exec_prefix) $(RUBY_MAKE_OPTIONS) install
33 +
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)
39
40 # rules for buildung the ruby module
41 ruby: