aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1811907..3968546 100644
--- a/Makefile
+++ b/Makefile
@@ -100,3 +100,19 @@ imxrt-chiptool.shootout: imxrt-chiptool/imxrt1011 imxrt-chiptool/imxrt1062 imxrt
@cargo update --manifest-path=imxrt-chiptool/imxrt1189_cm33/Cargo.toml
@cargo clean --manifest-path=imxrt-chiptool/imxrt1189_cm33/Cargo.toml
cargo build --manifest-path=imxrt-chiptool/imxrt1189_cm33/Cargo.toml --profile=$(PAC_PROFILE) --target=thumbv8m.main-none-eabihf --features=rt $(TIMINGS)
+
+CLEAN_MANIFESTS = $(wildcard \
+ chiptool/Cargo.toml \
+ svd2rust/Cargo.toml \
+ form/Cargo.toml \
+ svdtools/Cargo.toml \
+ imxrt-ral/Cargo.toml \
+ imxrt-svd2rust/*/Cargo.toml \
+ imxrt-chiptool/*/Cargo.toml)
+
+.PHONY: clean
+clean:
+ @for manifest in $(CLEAN_MANIFESTS); do \
+ echo "cargo clean --manifest-path=$$manifest"; \
+ cargo clean --manifest-path=$$manifest; \
+ done