]> granicus.if.org Git - python/commitdiff
Don't delete Lib/test/data/README when doing 'make distclean'
authorMark Dickinson <dickinsm@gmail.com>
Sun, 1 Aug 2010 21:33:01 +0000 (21:33 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 1 Aug 2010 21:33:01 +0000 (21:33 +0000)
Makefile.pre.in

index f7e9f7445945eac05c9ce04bd8ab3fa98a6c7993..03195a2ed5663272e307b564f6807c491219bda5 100644 (file)
@@ -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