perl: Add unit test for new RLenValue type
[hivex.git] / 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.