rust: make clean takes care of rust/target
authorGeorges Racinet <gracinet@anybox.fr>
Tue, 04 Dec 2018 17:03:43 +0000
changeset 53598 9072a890e5233953896e1579250b561151bdc87d
parent 53597 70976974c14a929acc4f73bf672c57d53fad6810
child 53599 9cec7a36bab8578d10335fe6df63704cf0722a0e
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
rust: make clean takes care of rust/target This isn't the prettiest way of doing it, but it doesn't require looking up cargo, or wondering whether that should be part of setup.py clean. Differential Revision: https://phab.mercurial-scm.org/D5369
Makefile
--- a/Makefile
+++ b/Makefile
@@ -67,16 +67,17 @@ cleanbutpackages:
 	find contrib doc hgext hgext3rd i18n mercurial tests hgdemandimport \
 		\( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
 	rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err
 	rm -f mercurial/__modulepolicy__.py
 	if test -d .hg; then rm -f mercurial/__version__.py; fi
 	rm -rf build mercurial/locale
 	$(MAKE) -C doc clean
 	$(MAKE) -C contrib/chg distclean
+	rm -rf rust/target
 
 clean: cleanbutpackages
 	rm -rf packages
 
 install: install-bin install-doc
 
 install-bin: build
 	$(PYTHON) setup.py $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force