summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-08-01 21:33:01 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-08-01 21:33:01 (GMT)
commitde802be00151337356f3da697a7b403db065d0da (patch)
tree1258fe1d2bb8aa2be64d16b4bc5eda72f24a3643 /Makefile.pre.in
parent0291c9ffa2fb6e2836f0749cc8d685503db9da3a (diff)
downloadcpython-de802be00151337356f3da697a7b403db065d0da.zip
cpython-de802be00151337356f3da697a7b403db065d0da.tar.gz
cpython-de802be00151337356f3da697a7b403db065d0da.tar.bz2
Don't delete Lib/test/data/README when doing 'make distclean'
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index f7e9f74..03195a2 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1204,7 +1204,9 @@ clobber: clean profile-removal
# remove all generated files, even Makefile[.pre]
# Keep configure and Python-ast.[ch], it's possible they can't be generated
distclean: clobber
- -rm -f Lib/test/data/*
+ for file in Lib/test/data/* ; do \
+ if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \
+ done
-rm -f core Makefile Makefile.pre config.status \
Modules/Setup Modules/Setup.local Modules/Setup.config \
Misc/python.pc