From 40eca41bfd8e05259ebae3d7a68f715f67067fbd Mon Sep 17 00:00:00 2001 From: Valentin Obst Date: Tue, 22 Oct 2024 15:11:40 +0200 Subject: [PATCH] make: shorten target names --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 785d12521..3784952d7 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,14 @@ compile_test_files: && pushd test/lkm_samples \ && ./build.sh -codestyle-check: +bench: + if [ ! -d "src/cwe_checker_lib/benches/_data/" ]; then \ + echo "Benchmark binaries not found. Please see src/cwe_checker_lib/benches/benchmarks.rs for instructions."; \ + exit -1; \ + fi + cargo bench --bench "benchmarks" -- --save-baseline __last_make_run + +check: cargo fmt -- --check cargo clippy -- -D clippy::all -D missing_docs cargo clippy -p cwe_checker_lib --bench "benchmarks" -- -D clippy::all