From: Eric V. Smith Date: Tue, 2 Jul 2013 13:02:03 +0000 (-0400) Subject: Closes #18312: 'make distclean' no longer deletes files in dot-directories. X-Git-Tag: v2.7.6rc1~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e38905b4faa7b94d5a1cfcb3a0bc0ef2ef32f9cc;p=thirdparty%2FPython%2Fcpython.git Closes #18312: 'make distclean' no longer deletes files in dot-directories. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 9d555503c142..98711ae62bb5 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1295,11 +1295,11 @@ distclean: clobber Modules/ld_so_aix Modules/python.exp Misc/python.pc -rm -f python*-gdb.py -rm -f pybuilddir.txt - find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ - -o -name '[@,#]*' -o -name '*.old' \ - -o -name '*.orig' -o -name '*.rej' \ - -o -name '*.bak' ')' \ - -exec rm -f {} ';' + find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \ + -o -name '[@,#]*' -o -name '*.old' \ + -o -name '*.orig' -o -name '*.rej' \ + -o -name '*.bak' ')' \ + -exec rm -f {} ';' # Check for smelly exported symbols (not starting with Py/_Py) smelly: all