summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-04-26 15:59:03 (GMT)
committerBarry Warsaw <barry@python.org>2010-04-26 15:59:03 (GMT)
commitc04317fdc45ded619a1b66941d1437a5e9a37a73 (patch)
tree4ad24fecd84e55ecfc977b544f27f9a71751f23e /Makefile.pre.in
parenta1af3e0b9ee9ee150d0ddce1306ce1a7aadf2a03 (diff)
downloadcpython-c04317fdc45ded619a1b66941d1437a5e9a37a73.zip
cpython-c04317fdc45ded619a1b66941d1437a5e9a37a73.tar.gz
cpython-c04317fdc45ded619a1b66941d1437a5e9a37a73.tar.bz2
Bug 8527 - multiple compileall calls produce cascading __pycache__ directories.
* Patch contributed by Arfrever Frehtes Taifersar Arahesis. * Test added by Barry Also, improve Makefile's deletion of __pycache__ directories so e.g. 'make distclean' doesn't fail if no __pycache__ directories exist.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 745c4a7..b0b9ee4 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1161,7 +1161,7 @@ TAGS::
# files, which clobber removes as well
pycremoval:
find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
- find $(srcdir) -name '__pycache__' | xargs rmdir
+ find $(srcdir) -name '__pycache__' -exec rmdir {} ';'
rmtestturds:
-rm -f *BAD *GOOD *SKIPPED