X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.SH;h=051884d7390b9a54dfa3e4c2d245ffc5cb9ebaba;hb=9686a75b8c83fbfdb9121332b5246617ff2cfc4f;hp=81b01368a9ce45f38bbdf4dd515f81a316418dce;hpb=f2766b05f6136cc9e8c8812afdbe7a31657a110d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Makefile.SH b/Makefile.SH index 81b0136..051884d 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -1,11 +1,8 @@ #! /bin/sh case $CONFIGDOTSH in '') - if test -f config.sh; then TOP=.; - elif test -f ../config.sh; then TOP=..; - elif test -f ../../config.sh; then TOP=../..; - elif test -f ../../../config.sh; then TOP=../../..; - elif test -f ../../../../config.sh; then TOP=../../../..; + if test -f config.sh + then TOP=. else echo "Can't find config.sh."; exit 1 fi @@ -123,6 +120,15 @@ for f in $nonxs_ext; do nonxs_list="$nonxs_list ext/$f/pm_to_blib" done +# Handle the usage of different yaccs in posix-bc (During Configure we +# us yacc for perly.y and byacc for a2p.y. The makefiles must use the +# same configuration for run_byacc!): +case "$osname" in + posix-bc) + byacc=$yacc + ;; +esac + echo "Extracting Makefile (with variable substitutions)" $spitshell >Makefile < $@ $(plextract): miniperl lib/Config.pm + @-rm -f $@ $(LDLIBPTH) ./miniperl -Ilib $@.PL lib/lib.pm: miniperl lib/Config.pm + @-rm -f $@ $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL extra.pods: miniperl @@ -559,7 +606,7 @@ extra.pods: miniperl install-strip: $(MAKE) STRIPFLAGS=-s install -install: +install install-all: $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) install-verbose: @@ -746,6 +793,9 @@ _mopup: -rm -f perl.exp ext.libs extra.pods opmini.o -rm -f perl.export perl.dll perl.libexp perl.map perl.def -rm -f perl.loadmap miniperl.loadmap perl.prelmap miniperl.prelmap + -rm -f perl.third lib*.so.perl.third perl.3log t/perl.third t/perl.3log + -rm -f perl.pixie lib*.so.perl.pixie lib*.so.Addrs + -rm -f perl.Addrs perl.Counts t/perl.Addrs t/perl.Counts rm -f perl suidperl miniperl $(LIBPERL) libperl.* microperl # Do not 'make _tidy' directly. @@ -777,7 +827,7 @@ _cleaner2: rm -f h2ph.man pstruct rm -rf .config rm -f testcompile compilelog - -rmdir lib/B lib/Data lib/Encode lib/IO/Socket lib/IO lib/Filter/Util lib/Sys lib/Thread + -rmdir lib/B lib/Data lib/Digest lib/Encode lib/IO/Socket lib/IO lib/Filter/Util lib/List lib/MIME lib/PerlIO lib/Scalar lib/Sys lib/Thread lib/XS _realcleaner: @$(LDLIBPTH) $(MAKE) _cleaner1 CLEAN=realclean @@ -818,31 +868,62 @@ depend: makedepend makedepend: makedepend.SH config.sh sh ./makedepend.SH -# Cannot delegate rebuilding of t/perl to make to allow interlaced -# test and minitest -test-prep: miniperl perl preplibrary utilities $(dynamic_ext) $(nonxs_ext) $(TEST_PERL_DLL) - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../perl$(EXE_EXT) perl$(EXE_EXT)) +# Cannot delegate rebuilding of t/perl to make +# to allow interlaced test and minitest + +_test_prep: $(PERL)$(EXE_EXT) + cd t && (rm -f $(PERL)$(EXE_EXT); $(LNS) ../$(PERL)$(EXE_EXT) $(PERL)$(EXE_EXT)) -# Second branch is for testing without a tty or controling terminal. -# See t/op/stat.t -test check: test-prep +test_prep: miniperl ./perl$(EXE_EXT) preplibrary utilities $(dynamic_ext) $(nonxs_ext) $(TEST_PERL_DLL) + PERL=./perl $(MAKE) _test_prep + +_test_tty: + cd t && $(LDLIBPTH) $(PERL_DEBUG) $(PERL) TEST $(UTF8) /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) ./perl TEST t/rantests -utest ucheck: test-prep - if (true /dev/null 2>&1; then \ - cd t && $(LDLIBPTH) ./perl UTEST a2p.tmp && mv a2p.tmp a2p.c xxx="$xxx a2p.c" fi