From aab8e7de56e28dc758946604540e44025e3737cb Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 26 Jul 2026 14:08:50 -0400 Subject: Add clean rule --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3