X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bindings%2FMakefile.am;h=fb68657c777b55f93487cd6a47ea58ee9eeee783;hb=df2b02629dbdd8a3a6f5513a38ef86cdd9780543;hp=1c604e191212f2ef160a0680ba09963d6c4e1508;hpb=d2914ae1474b2d42120c65c3f48be0be7affcb4e;p=collectd.git diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 1c604e19..fb68657c 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -1,16 +1,22 @@ +SUBDIRS = + +if BUILD_WITH_JAVA +SUBDIRS += java +endif + EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL \ perl/Collectd/Unixsock.pm all-local: @PERL_BINDINGS@ install-exec-local: - [ ! -f perl/Makefile ] || $(MAKE) -C perl install + [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install ) clean-local: - [ ! -f perl/Makefile ] || $(MAKE) -C perl realclean + [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean ) perl: perl/Makefile - $(MAKE) -C perl + cd perl && $(MAKE) perl/Makefile: .perl-directory-stamp perl/Makefile.PL \ perl/Collectd/Makefile.PL $(top_builddir)/config.status @@ -19,8 +25,10 @@ perl/Makefile: .perl-directory-stamp perl/Makefile.PL \ .perl-directory-stamp: if test ! -d perl; then \ mkdir -p perl/Collectd; \ - cp $(srcdir)/perl/{Collectd.pm,Makefile.PL} perl/; \ - cp $(srcdir)/perl/Collectd/{Unixsock.pm,Makefile.PL} perl/Collectd/; \ + cp $(srcdir)/perl/Collectd.pm perl/; \ + cp $(srcdir)/perl/Makefile.PL perl/; \ + cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \ + cp $(srcdir)/perl/Collectd/Makefile.PL perl/Collectd/; \ fi touch $@