Add convinience make targets

This commit is contained in:
Sosthène Guédon
2022-10-31 10:07:20 +01:00
parent 3e8fc3e653
commit e076633cc7
+25
View File
@@ -1,2 +1,27 @@
.NOTPARALLEL:
export RUST_LOG ?= info,cargo_tarpaulin=off
.PHONY: build-cortex-m4
build-cortex-m4:
cargo build --target thumbv7em-none-eabi
.PHONY: test
test:
cargo test --features virtual
.PHONY: check
check:
cargo fmt --check
cargo check --all-targets --all-features
cargo check --target thumbv7em-none-eabi
cargo clippy -- -Dwarnings
RUSTDOCFLAGS='-Dwarnings' cargo doc --all-features
.PHONY: tarpaulin
tarpaulin:
cargo tarpaulin --features virtual -o Html -o Xml
.PHONY: example
example:
cargo run --example virtual --features virtual