From e076633cc7337a3994fbaa89ff416e9481dfe01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 31 Oct 2022 09:48:44 +0100 Subject: [PATCH] Add convinience make targets --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile b/Makefile index 031929b..4c4b036 100644 --- a/Makefile +++ b/Makefile @@ -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