Parcourir la source

Makefile/bench: add -f to rm so nonexistent files don't block target

zero il y a 2 ans
Parent
commit
dd5c4d747f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

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