From dfd40679ece3101fef60159ccbd5754c9509f22f Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sun, 2 Oct 2022 15:44:19 +0200 Subject: [PATCH] Fix clean to properly clean all stuff. Add cleanbin target. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 277b1ea22..fff9f74cf 100644 --- a/Makefile +++ b/Makefile @@ -65,9 +65,15 @@ test: token_lists zkas $(PROOFS_BIN) test-tx test-tx: zkas RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) run --release --features=node,zkas --example tx -clean: +cleanbin: rm -f $(BINS) +clean: cleanbin + @for i in $(BINS); \ + do \ + RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) clean $i; \ + done; + install: @for i in $(BINS); \ do \ @@ -87,4 +93,4 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$$i; \ done; -.PHONY: all check fix clippy rustdoc test test-tx clean install uninstall +.PHONY: all check fix clippy rustdoc test test-tx clean cleanbin install uninstall