From 758bd237dce494595a903ed86728dacf1f00a243 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Tue, 16 Jun 2026 21:53:59 +0000 Subject: [PATCH] Make check-klayout an order-only prereq of merged GDS The phony check-klayout target was a normal prerequisite of $(GDS_MERGED_FILE), which forced the KLayout def2stream merge to re-run on every `make finish`/`make metadata` invocation regardless of whether the GDS inputs had changed. Moving it behind `|` keeps the KLayout availability check when the GDS needs building, without marking the GDS perpetually out-of-date. Signed-off-by: Matt Liberty --- flow/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/Makefile b/flow/Makefile index 16d8ae8be5..7227ad3214 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -673,7 +673,7 @@ $(WRAPPED_GDSOAS): $(OBJECTS_DIR)/klayout_wrap.lyt $(WRAPPED_LEFS) # Merge GDS using Klayout #------------------------------------------------------------------------------- -$(GDS_MERGED_FILE): check-klayout $(RESULTS_DIR)/6_final.def $(OBJECTS_DIR)/klayout.lyt $(GDSOAS_FILES) $(WRAPPED_GDSOAS) $(SEAL_GDSOAS) +$(GDS_MERGED_FILE): $(RESULTS_DIR)/6_final.def $(OBJECTS_DIR)/klayout.lyt $(GDSOAS_FILES) $(WRAPPED_GDSOAS) $(SEAL_GDSOAS) | check-klayout $(UNSET_AND_MAKE) do-gds-merged .PHONY: do-gds-merged