Makefile: be more careful when cleaning up pure/ components stable 2.2-rc
authorMatt Mackall <mpm@selenic.com>
Wed, 18 Apr 2012 11:45:50 -0500
branchstable
changeset 16460 d9e2f09d5488
parent 16459 baa06fb69ece
child 16461 687f390e661a
Makefile: be more careful when cleaning up pure/ components The recent introduction of pure/__init__.py causes mercurial/__init__.py to get clobbered by make clean.
Makefile
--- a/Makefile	Tue Apr 17 17:56:36 2012 -0500
+++ b/Makefile	Wed Apr 18 11:45:50 2012 -0500
@@ -45,7 +45,7 @@
 clean:
 	-$(PYTHON) setup.py clean --all # ignore errors from this command
 	find . \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
-	rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/*.py)))
+	rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py)))
 	rm -f MANIFEST MANIFEST.in tests/*.err
 	rm -rf build mercurial/locale
 	$(MAKE) -C doc clean