]> granicus.if.org Git - python/commitdiff
Use
authorGuido van Rossum <guido@python.org>
Thu, 1 Mar 2001 00:36:53 +0000 (00:36 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 1 Mar 2001 00:36:53 +0000 (00:36 +0000)
    find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f

to remove all .py[co] files before testing, rather than just those in
the Lib/test directory.  "find" is used all over the Makefile so I
suppose it's safe; how about xargs?

Makefile.pre.in

index 94aa576857b81a088a6bd3b7e81b701cf78ac373..abf56561b870c3af533c49ae7cd8487b72bc6d0d 100644 (file)
@@ -461,7 +461,7 @@ TESTOPTS=   -l
 TESTPROG=      $(srcdir)/Lib/test/regrtest.py
 TESTPYTHON=    ./$(PYTHON) -tt
 test:          all platform
-               -rm -f $(srcdir)/Lib/test/*.py[co]
+               -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
                -PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
                PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
 
@@ -469,7 +469,7 @@ QUICKTESTOPTS=      $(TESTOPTS) -x test_thread test_signal test_strftime \
                test_unicodedata test_re test_sre test_select test_poll \
                test_linuxaudiodev test_sunaudiodev
 quicktest:     all platform
-               -rm -f $(srcdir)/Lib/test/*.py[co]
+               -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
                -PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
                PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)