Browse Source

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

zero 2 years ago
parent
commit
79b6276fc8
1 changed files with 4 additions and 2 deletions
  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