Makefile: remove the build folder manually
Given a system Python version of 2.6, the following won't clean up build:
$ make local PYTHON=python2.7
$ make clean
Distutils only cleans up build subdirectories for the current Python
version.
This patch cleans up the build folder even if PYTHON=python2.7 isn't
specified to clean.
--- a/Makefile Sat Sep 25 19:38:27 2010 -0500
+++ b/Makefile Sat Sep 25 19:47:45 2010 -0500
@@ -45,7 +45,7 @@
-$(PYTHON) setup.py clean --all # ignore errors from this command
find . \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
rm -f MANIFEST mercurial/__version__.py tests/*.err
- rm -rf mercurial/locale
+ rm -rf build mercurial/locale
$(MAKE) -C doc clean
install: install-bin install-doc