summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3dc65c8)
raw | patch | inline | side by side (parent: 3dc65c8)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 19 Dec 2007 13:33:39 +0000 (14:33 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 19 Dec 2007 13:33:39 +0000 (14:33 +0100) |
Thanks to Michael Tiernan for reporting this bug.
bindings/Makefile.am | patch | blob | history |
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index 37e31ea19b0013672da7d4b7f79c9637630a3fc4..5aa49435fea620fa0d32ecf6a04bf523c248ebb6 100644 (file)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
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/Makefile ] || $(MAKE) -C perl install
+ [ ! -f $(PERL_SUBDIR)/Makefile ] || $(MAKE) -C $(PERL_SUBDIR) install
clean-local:
- [ ! -f perl/Makefile ] || $(MAKE) -C perl realclean
+ [ ! -f $(PERL_SUBDIR)/Makefile ] || $(MAKE) -C $(PERL_SUBDIR) realclean
-perl: perl/Makefile
- $(MAKE) -C perl
+@srcdir@/perl: $(PERL_SUBDIR)/Makefile
+ $(MAKE) -C $(PERL_SUBDIR)
-perl/Makefile: perl/Makefile.PL perl/Collectd/Makefile.PL
- cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
+@srcdir@/perl/Makefile: @srcdir@/perl/Makefile.PL @srcdir@/perl/Collectd/Makefile.PL
+ cd $(PERL_SUBDIR) && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
-.PHONY: perl
+.PHONY: @srcdir@/perl