rust: make clean takes care of rust/target
authorGeorges Racinet <>
Tue, 04 Dec 2018 17:03:43 +0000
changeset 53598 9072a890e5233953896e1579250b561151bdc87d
parent 53597 70976974c14a929acc4f73bf672c57d53fad6810
child 53599 9cec7a36bab8578d10335fe6df63704cf0722a0e
push id1079
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 clean. Differential Revision:
--- 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 hgext/ tests/*.err
 	rm -f mercurial/
 	if test -d .hg; then rm -f mercurial/; 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) $(PURE) install --root="$(DESTDIR)/" --prefix="$(PREFIX)" --force