Skip to content

Commit 23843c5

Browse files
authored
Merge pull request #4545 from oharboe/do-write-rc
utils.mk: give write_rc a do- sibling
2 parents 3a964e1 + 99b182f commit 23843c5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎flow/util/utils.mk‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ write_rc: $(RESULTS_DIR)/6_nets_rc.csv $(RESULTS_DIR)/6_segments_rc.csv
113113
# A pattern rule to write both files with a single run, as the grouped target
114114
# syntax requires GNU Make 4.3.
115115
%_nets_rc.csv %_segments_rc.csv:
116+
$(UNSET_AND_MAKE) do-write_rc
117+
118+
# The do- sibling, following do-synth-report and the do-step/do-copy
119+
# families: the file target above decides *whether* to run and delegates
120+
# here, and this rule is the only place the invocation lives. A caller
121+
# doing its own dependency checking asks for this one directly.
122+
.PHONY: do-write_rc
123+
do-write_rc:
116124
$(RUN_CMD) --log $(LOG_DIR)/6_write_rc.log --tee -- $(OPENROAD_CMD) $(UTILS_DIR)/write_rc.tcl
117125

118126
.PHONY: correlate_rc

0 commit comments

Comments
 (0)