Преглед на файлове

Fix clean to properly clean all stuff. Add cleanbin target.

Christoph Lohmann преди 3 години
родител
ревизия
dfd40679ec
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 8 2
      Makefile

+ 8 - 2
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