MABELab-RS/Makefile

30 lines
678 B
Makefile

SHELL := /bin/bash
.PHONY: build test clippy fmt ci shell clean release
# Open an interactive shell in the dev container
shell:
\tdocker compose run --rm dev bash
build:
\tdocker compose run --rm dev bash -lc "cargo build --workspace --all-targets"
test:
\tdocker compose run --rm dev bash -lc "cargo test --workspace --all-features --no-fail-fast"
clippy:
\tdocker compose run --rm dev bash -lc "cargo clippy --workspace --all-targets -- -D warnings"
fmt:
\tdocker compose run --rm dev bash -lc "cargo fmt --all"
ci: fmt clippy build test
release:
\tdocker compose build release
clean:
\trm -rf target || true
\tdocker compose down --volumes --remove-orphans || true