For ExtUtils::MakeMaker (Perl), there is an alternative (setting INST_ARCHLIB, INST_LIB, INST_BIN, INST_SCRIPT, INST_MAN1DIR, and INST_MAN3DIR) but this would not work for the test cases. For rake (Ruby), I have found no obvious way to specify a different target directory. --- perl/Makefile.am | 1 + ruby/Makefile.am | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/perl/Makefile.am b/perl/Makefile.am index d8167d1..1c3079e 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -63,6 +63,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. diff --git a/ruby/Makefile.am b/ruby/Makefile.am index a2e962d..872dad6 100644 --- a/ruby/Makefile.am +++ b/ruby/Makefile.am @@ -52,6 +52,7 @@ TESTS_ENVIRONMENT = \ TMPDIR=$(top_builddir) all: $(generator_built) + -[ $(srcdir) != $(builddir) ] && cp -rsu $(abs_srcdir)/. $(builddir)/. rake build rake rdoc -- 1.7.5.4