From 87fd2319a4b26130c114cdf97e1c5104b12ab41a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 27 Dec 2007 16:39:46 +0100 Subject: [PATCH] Revert "bindings/Makefile.am: Fix a bug that happened when src and build directory are not the same." This reverts commit 61f5c1a972626212aab60c4d50f45097485b8e51 which had the following problems: * parts of the build process took place in the source directory (which should be read-only though) * the "perl" target should not be renamed - the name is used in @PERL_BINDINGS@ to identify the bindings that are supposed to be built Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- bindings/Makefile.am | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 5aa49435..37e31ea1 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -1,20 +1,18 @@ EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL perl/Collectd/Unixsock.pm -PERL_SUBDIR = $(srcdir)/perl - all-local: @PERL_BINDINGS@ install-exec-local: - [ ! -f $(PERL_SUBDIR)/Makefile ] || $(MAKE) -C $(PERL_SUBDIR) install + [ ! -f perl/Makefile ] || $(MAKE) -C perl install clean-local: - [ ! -f $(PERL_SUBDIR)/Makefile ] || $(MAKE) -C $(PERL_SUBDIR) realclean + [ ! -f perl/Makefile ] || $(MAKE) -C perl realclean -@srcdir@/perl: $(PERL_SUBDIR)/Makefile - $(MAKE) -C $(PERL_SUBDIR) +perl: perl/Makefile + $(MAKE) -C perl -@srcdir@/perl/Makefile: @srcdir@/perl/Makefile.PL @srcdir@/perl/Collectd/Makefile.PL - cd $(PERL_SUBDIR) && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@ +perl/Makefile: perl/Makefile.PL perl/Collectd/Makefile.PL + cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@ -.PHONY: @srcdir@/perl +.PHONY: perl -- 2.30.2