diff --git a/Makefile b/Makefile index af7007807f..aa9163f487 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,21 @@ cache-save-essential: cache-verify: @bash $(CACHE_RESTORE) --verify +# Phase J / Improvement C: verify that all Cargo [patch] +# sections in the local sources' Cargo.toml files resolve +# to the expected local fork paths. Run after `make all` +# to confirm Phase J end-to-end. Returns non-zero exit on +# any unresolved patch. +verify-patches: + @bash local/scripts/check-cargo-patches.sh + +# Phase I: also run the file-level patch check +verify-file-patches: + @bash local/scripts/check-unwired-patches.sh --strict + +# Verify everything: file-level patches + Cargo [patch] sections +verify-all: verify-file-patches verify-patches + cache-list: @bash $(CACHE_SAVE) --list