Просмотр исходного кода

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

zero 2 лет назад
Родитель
Сommit
79b6276fc8
1 измененных файлов с 4 добавлено и 2 удалено
  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