.PHONY: help test build release check fmt clippy clean
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
test:
cargo test --all-features
build:
cargo build --all-features
check:
cargo check --all-features
fmt:
cargo fmt
clippy:
cargo clippy --all-features -- -D warnings
clean:
cargo clean
release: ## Create a new release (usage: make release VERSION=0.1.1)
@if [ -z "$(VERSION)" ]; then \
echo "Error: VERSION not specified"; \
echo "Usage: make release VERSION=0.1.1"; \
exit 1; \
fi
@./scripts/release.sh $(VERSION)