# HG changeset patch # User Brodie Rao # Date 1285462065 18000 # Node ID deeef07c6e7da88301a4b5ed2da4e62e9b707bf9 # Parent 596ad02eabe4fb9b737a8dff1ae2ae8f203ce8f8 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. diff -r 596ad02eabe4 -r deeef07c6e7d Makefile --- 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