Merge branch 'collectd-4.2'
[collectd.git] / bindings / Makefile.am
index 1c604e1..620389f 100644 (file)
@@ -4,13 +4,13 @@ EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL \
 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 +19,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 $@