diff --git a/Makefile b/Makefile index 917a113..268b66f 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,18 @@ NIXIE ?= nixie COV_MIN ?= 0 # Minimum line coverage percentage for coverage targets define CHECK_CARGO_LLVM_COV - @command -v cargo-llvm-cov >/dev/null || { \ - echo "error: cargo-llvm-cov not found. Install with: cargo install cargo-llvm-cov"; \ - exit 127; \ - } + @command -v cargo-llvm-cov >/dev/null || { \ + echo "error: cargo-llvm-cov not found. Install with: cargo install cargo-llvm-cov" >&2; \ + exit 127; \ + } + @command -v rustup >/dev/null || { \ + echo "error: rustup not found. Install from: https://rustup.rs" >&2; \ + exit 127; \ + } + @rustup component list --installed | grep -q '^llvm-tools-preview' || { \ + echo "error: rustup component llvm-tools-preview not found. Install with: rustup component add llvm-tools-preview" >&2; \ + exit 127; \ + } endef build: target/debug/$(APP) ## Build debug binary