SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Usage: make [target]"
@echo
@echo "Targets:"
@awk '/^[a-zA-Z\-\_0-9]+:/ { \
helpMessage = match(lastLine, /^## (.*)/); \
if (helpMessage) { \
helpCommand = substr($$1, 0, index($$1, ":")-1); \
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
printf " \033[36m%-15s\033[0m %s
.PHONY: lint
lint:
cargo clippy --all-targets --all-features -- -D warnings
.PHONY: test
test:
cargo test --all-targets --all-features
.PHONY: build
build:
cargo build --all-targets --all-features