Skip to content

Commit ab46c01

Browse files
committed
makefile: simplify handling of .log files
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 1730016 commit ab46c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ $(if $(5),$(5),$(RESULTS_DIR))/$(1)$(if $(4),$(4),.odb): $(2)
475475

476476
.PHONY: do-$(1)
477477
do-$(1):
478-
{ $(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json && cp $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log; } 2>&1 | tee $(LOG_DIR)/$(1).tmp.log
479-
rm -f $(LOG_DIR)/$(1).tmp.log
478+
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json) 2>&1 | tee $(LOG_DIR)/$(1).tmp.log
479+
mv $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log
480480
endef
481481

482482
# generate make rules to copy a file, if a dependency change and

0 commit comments

Comments
 (0)