From: Nicholas Clark Date: Tue, 22 Sep 2009 09:32:57 +0000 (+0100) Subject: Move t/perl symlink creation back to the test_prep target of the Makefile X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e75f8ea9991e059e875b1407c34a259205f0a505;p=p5sagit%2Fp5-mst-13.2.git Move t/perl symlink creation back to the test_prep target of the Makefile But not in the way it was done before with a recursive call to $(MAKE) - instead create it directly in the current make invocation as an action for test_prep, and create the link for perl.third directly as an action for test_prep.third Also, make it optional to pass the perl to run into runtests, by providing a default of ./perl$(EXE_EXT) This feels simpler and still Don't Repeat Yourself. --- diff --git a/Makefile.SH b/Makefile.SH index 4de1ae3..cb19b13 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -1313,21 +1313,22 @@ makedepend: makedepend.SH config.sh test_prep_pre: preplibrary utilities $(nonxs_ext) test_prep: test_prep_pre $(MINIPERL_EXE) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) + cd t && (rm -f perl$(EXE_EXT); $(LNS) ../perl$(EXE_EXT) perl$(EXE_EXT)) test check: test_prep - PERL=./perl ./runtests choose + ./runtests choose test_tty: test_prep - PERL=./perl ./runtests tty + ./runtests tty test_notty: test_prep - PERL=./perl ./runtests no-tty + ./runtests no-tty utest ucheck test.utf8 check.utf8: test_prep - PERL=./perl TEST_ARGS=-utf8 ./runtests choose + TEST_ARGS=-utf8 ./runtests choose coretest: test_prep - PERL=./perl TEST_ARGS=-core ./runtests choose + TEST_ARGS=-core ./runtests choose test-prep: test_prep @@ -1338,7 +1339,7 @@ test-notty: test_notty # Torture testing test.torture torturetest: test_prep - PERL=./perl TEST_ARGS=-torture ./runtests choose + TEST_ARGS=-torture ./runtests choose # Targets for UTF16 testing: @@ -1347,27 +1348,28 @@ minitest.utf16: minitest.prep && $(LDLIBPTH) $(RUN) ./perl TEST -minitest -utf16 base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t