More changes needed separate builddir
authorHilko Bengen <bengen@hilluzination.de>
Thu, 11 Aug 2011 23:30:52 +0000 (01:30 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 12 Aug 2011 08:53:34 +0000 (09:53 +0100)
Here's the fix for perl. Both in-tree and out-of-tree build and install
worked.

-Hilko

perl/Makefile.am

index ddc40b7..1722bcf 100644 (file)
@@ -46,6 +46,7 @@ all: Makefile-pl src_deps
        $(MAKE) -f Makefile-pl
 
 Makefile-pl: Makefile.PL
+       -[ $(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.