Skip to content

Commit 2219121

Browse files
committed
makefile: use do-copy for cts
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 815a106 commit 2219121

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

flow/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,10 @@ endef
471471

472472
define do-copy
473473
$(RESULTS_DIR)/$(1)$(if $(4),$(4),.odb): $(RESULTS_DIR)/$(2) $(3)
474-
$$(UNSET_AND_MAKE) do-$(1)
474+
$$(UNSET_AND_MAKE) do-$(1)$(if $(4),$(4),.odb)
475475

476-
.PHONY: do-$(1)
477-
do-$(1):
476+
.PHONY: do-$(1)$(if $(4),$(4),.odb)
477+
do-$(1)$(if $(4),$(4),.odb):
478478
cp $(RESULTS_DIR)/$(2) $(RESULTS_DIR)/$(1)$(if $(4),$(4),.odb)
479479
endef
480480

@@ -598,8 +598,7 @@ $(eval $(call do-step,4_2_cts_fillcell,$(RESULTS_DIR)/4_1_cts.odb,fillcell))
598598

599599
$(RESULTS_DIR)/4_cts.sdc: $(RESULTS_DIR)/4_cts.odb
600600

601-
$(RESULTS_DIR)/4_cts.odb: $(RESULTS_DIR)/4_2_cts_fillcell.odb
602-
cp $< $@
601+
$(eval $(call do-copy,4_cts,4_2_cts_fillcell.odb))
603602

604603
.PHONY: clean_cts
605604
clean_cts:

0 commit comments

Comments
 (0)