Explorar o código

Makefile: add missing dependency 'contracts' to bench target and rm src/contract/test-harness/*.bin

zero %!s(int64=2) %!d(string=hai) anos
pai
achega
79b6276fc8
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      Makefile

+ 4 - 2
Makefile

@@ -140,12 +140,14 @@ test: contracts $(PROOFS_BIN)
 	RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) test --target=$(RUST_TARGET) \
 		--release --all-features --workspace
 
-bench_zk-from-json: $(PROOFS_BIN)
+bench_zk-from-json: contracts $(PROOFS_BIN)
+	rm src/contract/test-harness/*.bin
 	RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) bench --target=$(RUST_TARGET) \
 		--bench zk_from_json --all-features --workspace \
 		-- --save-baseline master
 
-bench: $(PROOFS_BIN)
+bench: contracts $(PROOFS_BIN)
+	rm src/contract/test-harness/*.bin
 	RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) bench --target=$(RUST_TARGET) \
 		--all-features --workspace \
 		-- --save-baseline master