Skip to content

Commit 4704c7c

Browse files
committed
makefile: document arguments to do-copy
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent c0e1f78 commit 4704c7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

flow/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,15 @@ do-$(1):
481481
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json) 2>&1 | tee $(LOG_DIR)/$(1).log
482482
endef
483483

484+
# generate make rules to copy a file, if a dependency change and
485+
# a do- sibling rule that copies the file unconditionally.
486+
#
487+
# The file is copied within the $(RESULTS_DIR)
488+
#
489+
# $(1) stem of target, e.g. 2_2_floorplan_io
490+
# $(2) basename of file to be copied
491+
# $(3) further dependencies
492+
# $(4) target extension, default .odb
484493
define do-copy
485494
$(RESULTS_DIR)/$(1)$(if $(4),$(4),.odb): $(RESULTS_DIR)/$(2) $(3)
486495
$$(UNSET_AND_MAKE) do-$(1)$(if $(4),$(4),)

0 commit comments

Comments
 (0)