.DEFAULT_GOAL := help
.PHONY: build-dev build-release test fmt lint bench clean help
build-dev:
@echo "[moors] build (debug)"
cargo build
build-release:
@echo "[moors] build (release)"
cargo build --release
test:
@echo "[moors] test"
cargo test --release --all-features
fmt:
@echo "[moors] format"
cargo fmt
lint:
@echo "[moors] lint"
cargo fmt -- --check
bench:
@echo "[moors] bench"
cargo bench -- --nocapture
clean:
@echo "[moors] clean"
cargo clean
rm -f lcov.info
help:
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) \
| sed 's/:.*##/:/' \
| column -t -s ':' \
| sort