.PHONY: build build-release build-linux-musl-debug build-linux-musl-release clippy fmt audit clean check install help
all: build
build:
cargo build
build-release:
cargo build --release
build-linux-musl-debug:
cargo build --target x86_64-unknown-linux-musl
build-linux-musl-release:
cargo build --release --target x86_64-unknown-linux-musl
clippy:
cargo clippy --all-targets --all-features -- -D warnings
fmt:
cargo fmt
fmt-check:
cargo fmt -- --check
audit:
cargo install --quiet cargo-audit || true
cargo audit
clean:
cargo clean
check: fmt-check clippy build
install:
cargo install --path .
install-release:
cargo install --path . --release
help:
@echo "Available targets:"
@echo " build - Build debug version"
@echo " build-release - Build release version"
@echo " build-linux-musl-debug - Build debug static binary (Linux MUSL)"
@echo " build-linux-musl-release- Build release static binary (Linux MUSL)"
@echo " clippy - Run clippy linter"
@echo " fmt - Format code"
@echo " fmt-check - Check code formatting"
@echo " audit - Run security audit"
@echo " clean - Clean build artifacts"
@echo " check - Run all checks (fmt, clippy, build)"
@echo " install - Install binary (debug)"
@echo " install-release - Install binary (release)"
@echo " help - Show this help message"