.PHONY: all build check test fmt clippy clean help verify release lint fmt-check doc
all: build
build:
cargo build
release:
cargo build --release
lint: fmt-check check clippy
check:
cargo check --all --all-features
test:
cargo test --all --all-features
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --all-targets --all-features -- -D warnings
verify: fmt-check check clippy test doc
doc:
cargo doc --all --no-deps
clean:
cargo clean
help:
@echo "tinycrossterm - Makefile targets:"
@echo ""
@echo " make build - Build debug"
@echo " make release - Build release"
@echo " make check - Check compilation"
@echo " make test - Run tests"
@echo " make fmt - Format code"
@echo " make fmt-check - Check code formatting"
@echo " make clippy - Run linter"
@echo " make lint - Run fmt-check, check, and clippy"
@echo " make verify - Run all checks (CI)"
@echo " make doc - Build docs"
@echo " make clean - Remove build artifacts"
@echo " make help - Show this help"