make: also delete hg.exe when cleaning
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 28 Jan 2020 22:35:08 -0500
changeset 44201 64e104ca555e
parent 44200 fa9ad1da2e77
child 44202 a7f8160cc4e4
make: also delete hg.exe when cleaning This will be needed for the next patch, which has more details. It has to come before the call into setup.py because even `python setup.py clean` calls hg to generate the version file. Differential Revision: https://phab.mercurial-scm.org/D8037
Makefile
--- a/Makefile	Thu Jan 23 15:44:30 2020 -0800
+++ b/Makefile	Tue Jan 28 22:35:08 2020 -0500
@@ -64,6 +64,7 @@
 	$(MAKE) -C doc
 
 cleanbutpackages:
+	rm -f hg.exe
 	-$(PYTHON) setup.py clean --all # ignore errors from this command
 	find contrib doc hgext hgext3rd i18n mercurial tests hgdemandimport \
 		\( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'