]> granicus.if.org Git - python/commitdiff
Closes #18312: 'make distclean' no longer deletes files in dot-directories.
authorEric V. Smith <eric@trueblade.com>
Tue, 2 Jul 2013 13:06:54 +0000 (09:06 -0400)
committerEric V. Smith <eric@trueblade.com>
Tue, 2 Jul 2013 13:06:54 +0000 (09:06 -0400)
Makefile.pre.in

index 6709f4a68a0fad6436b3af7213414dc101464a2f..7a252694f63ef51ba7dae38589a6a1b1c876ec64 100644 (file)
@@ -1413,11 +1413,11 @@ distclean: clobber
                Modules/Setup Modules/Setup.local Modules/Setup.config \
                Modules/ld_so_aix Modules/python.exp Misc/python.pc
        -rm -f python*-gdb.py
-       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