aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2026-07-26 14:08:50 -0400
committerIan McIntyre <me@mciantyre.dev>2026-07-26 14:08:50 -0400
commitaab8e7de56e28dc758946604540e44025e3737cb (patch)
tree5981f67c7b0d9242c59486a7784ba80c1f3b1748 /Makefile
parentb5dbf9d11abc64d922b5759116192329e55f508e (diff)
Add clean ruleHEADmain
Diffstat (limited to 'Makefile')
-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