tamer: Makefile.am (bench-build): New target, default for all

Build the benchmarks by default to catch breakages without having to incur
the cost of actually running them.
main
Mike Gerwitz 2021-10-08 09:27:56 -04:00
parent 75d2ecf4dd
commit f0f6f89745
1 changed files with 6 additions and 2 deletions

View File

@ -27,13 +27,13 @@
.DELETE_ON_ERROR:
.PHONY: all fix fmt check-fmt bench
.PHONY: all fix fmt check-fmt bench bench-build
CARGO_BUILD_FLAGS=@CARGO_BUILD_FLAGS@
.DEFAULT: bin
all: bin doc
all: bin doc bench-build
.PHONY: bin
bin:
@ -55,6 +55,10 @@ check-fmt:
bench:
@CARGO@ +@RUST_TC@ @CARGO_BENCH_PRE_FLAGS@ bench $(CARGO_BENCH_FLAGS) @FEATURES@
# Build but do not run benches (to ensures we didn't break them)
bench-build:
@CARGO@ +@RUST_TC@ @CARGO_BENCH_PRE_FLAGS@ build --benches @FEATURES@
fix: fmt
fmt:
@CARGO@ +@RUST_TC@ fmt