.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: build
build:
cargo build
.PHONY: test
test:
cargo test
.PHONY: fmt
fmt:
cargo fmt --all
.PHONY: fmt-check
fmt-check:
cargo fmt --all -- --check
.PHONY: clippy
clippy:
cargo clippy --all -- -D warnings
.PHONY: check
check: fmt-check clippy test
.PHONY: release
release:
cargo build --release
.PHONY: install
install:
cargo install --path .