[Libguestfs] [PATCH 3/4] out-of-tree build: fix building Perl bindings

Hilko Bengen bengen at hilluzination.de
Thu Mar 7 18:59:27 UTC 2013


---
 perl/Makefile.am |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/perl/Makefile.am b/perl/Makefile.am
index b0f9b5c..750cc22 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -64,6 +64,8 @@ all: Makefile-pl src_deps
 	$(MAKE) -f Makefile-pl
 
 Makefile-pl: Makefile.PL
+	# This hack is only used for out-of-tree builds
+	-[ $(srcdir) != $(builddir) ] && cp -rsu $(abs_srcdir)/. $(builddir)/.
 	perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
 
 # No!  Otherwise it is deleted before the clean-local rule runs.
-- 
1.7.10.4




More information about the Libguestfs mailing list