make: restrict recursion in make clean
authorMatt Mackall <mpm@selenic.com>
Thu, 14 Nov 2013 17:17:44 -0600
changeset 20007 23edc6673f0d
parent 20006 9276014db865
child 20008 e54a078153f7
make: restrict recursion in make clean
Makefile
--- 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