Change 33134 by [EMAIL PROTECTED] on 2008/01/30 19:20:00
Integrate:
[ 32741]
You don't need $(DYNALOADER) to make $(nonxs_ext)
(which makes it easier to run minitest)
[ 32848]
Add a 'test-reonly' target to the standard Makefile for *nix. (Not
quite as clever as the one for win32, im working on it)
[ 32886]
Subject: [PATCH] Cleanup lib/B
From: "Jerry D. Hedden" <[EMAIL PROTECTED]>
Date: Fri, 4 Jan 2008 13:22:36 -0500
Message-ID: <[EMAIL PROTECTED]>
[ 32999]
A target for sperl.i
[ 33003]
Nick's a muppet - "all" needs to remain the first real target in the
Makefile. Do not be distracted by suffix rules above.
Affected files ...
... //depot/maint-5.10/perl/Makefile.SH#3 integrate
Differences ...
==== //depot/maint-5.10/perl/Makefile.SH#3 (text) ====
Index: perl/Makefile.SH
--- perl/Makefile.SH#2~32697~ 2007-12-22 02:26:16.000000000 -0800
+++ perl/Makefile.SH 2008-01-30 11:20:00.000000000 -0800
@@ -445,6 +445,15 @@
@echo " ";
@echo " Everything is up to date. Type '$(MAKE) test' to run test
suite."
+sperl$(OBJ_EXT): perl.c $(h)
+ $(RMS) sperl.c
+ $(LNS) perl.c sperl.c
+ $(CCCMD) -DIAMSUID sperl.c
+ $(RMS) sperl.c
+
+sperl.i: perl.c $(h)
+ $(CCCMDSRC) -DIAMSUID -E perl.c > sperl.i
+
.PHONY: all translators utilities
translators: miniperl$(EXE_EXT) $(CONFIGPM) FORCE
@@ -823,12 +832,6 @@
$spitshell >>Makefile <<'!NO!SUBS!'
-sperl$(OBJ_EXT): perl.c $(h)
- $(RMS) sperl.c
- $(LNS) perl.c sperl.c
- $(CCCMD) -DIAMSUID sperl.c
- $(RMS) sperl.c
-
# We have to call our ./makedir because Ultrix 4.3 make can't handle the line
# test -d lib/auto || mkdir lib/auto
# We need to autosplit in two steps because VOS can't handle so many args
@@ -1031,7 +1034,7 @@
s_dummy $(static_ext): miniperl$(EXE_EXT) preplibrary makeppport $(DYNALOADER)
FORCE
@$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE)
LIBPERL_A=$(LIBPERL)
-n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
+n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary FORCE
@$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE)
LIBPERL_A=$(LIBPERL)
!NO!SUBS!
@@ -1123,7 +1126,8 @@
rm -f lib/ExtUtils/ParseXS/t/XSTest.c
rm -f lib/ExtUtils/ParseXS/t/XSTest$(OBJ_EXT)
rm -f lib/ExtUtils/ParseXS/t/XSTest$(DLSUFFIX)
- -rmdir lib/B lib/Data
+ rm -fr lib/B
+ -rmdir lib/Data
-rmdir lib/Filter/Util lib/IO/Socket
-rmdir lib/List lib/MIME lib/Scalar lib/Sys
-rmdir lib/threads lib/XS
@@ -1180,7 +1184,7 @@
test.utf16 check.utf16 utest.utf16 ucheck.utf16 \
test.third check.third utest.third ucheck.third test_notty.third \
test.deparse test_notty.deparse test_harness test_harness_notty \
- minitest coretest test.taintwarn
+ minitest coretest test.taintwarn test-reonly
# Cannot delegate rebuilding of t/perl to make
# to allow interlaced test and minitest
@@ -1213,9 +1217,9 @@
# see t/op/stat.t
_test:
if (true </dev/tty) >/dev/null 2>&1; then \
- $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_tty ; \
+ $(MAKE) TEST_ARGS='$(TEST_ARGS)' TESTFILE=$(TESTFILE) _test_tty ; \
else \
- $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_notty ; \
+ $(MAKE) TEST_ARGS='$(TEST_ARGS)' TESTFILE=$(TESTFILE) _test_notty ; \
fi
@echo "Ran tests" > t/rantests
@@ -1320,6 +1324,9 @@
test_harness_notty: test_prep
PERL=./perl HARNESS_NOTTY=1 $(MAKE) TESTFILE=harness _test
+test-reonly: test_prep
+ PERL=./perl TEST_ARGS='-re \\bpat\\b \\breg \\bre\b \\bsubst \\brxcode'
$(MAKE) TESTFILE=harness _test
+
# Handy way to run perlbug -ok without having to install and run the
# installed perlbug. We don't re-run the tests here - we trust the user.
# Please *don't* use this unless all tests pass.
End of Patch.