changeset 20007:23edc6673f0d

make: restrict recursion in make clean
author Matt Mackall <mpm@selenic.com>
date Thu, 14 Nov 2013 17:17:44 -0600
parents 9276014db865
children e54a078153f7
files Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Nov 12 00:07:23 2013 +0900
+++ b/Makefile	Thu Nov 14 17:17:44 2013 -0600
@@ -53,7 +53,8 @@
 
 clean:
 	-$(PYTHON) setup.py clean --all # ignore errors from this command
-	find . \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
+	find contrib doc hgext i18n mercurial tests \
+		\( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
 	rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py)))
 	rm -f MANIFEST MANIFEST.in mercurial/__version__.py tests/*.err
 	rm -rf build mercurial/locale