From 1834f19d2067e0ff5cfa744ff6b71f2694eebcb7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 20 Oct 2021 17:54:25 +0100 Subject: [PATCH] rust: Wire up make clean so it runs cargo clean Before this commit, after make clean: $ du -sh rust 641M rust After: 776K rust --- rust/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/Makefile.am b/rust/Makefile.am index cb16e021f..b41e71712 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -35,6 +35,9 @@ if HAVE_RUST all: $(srcdir)/src/lib.rs $(top_builddir)/run $(CARGO) build --release +clean-local: + $(top_builddir)/run $(CARGO) clean + TESTS = run-bindtests run-tests CLEANFILES += target/*~