Skip to content

Commit 4eb2777

Browse files
committed
makefile: make RUN_LOG_NAME_STEM=foo run to specify name of log
Short explanation: simpler scripting, better impedance match with makefiles and bazel. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent bdecdd0 commit 4eb2777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flow/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,10 +1051,12 @@ test-unset-and-make-%: ; $(UNSET_AND_MAKE) $*
10511051
klayout:
10521052
$(KLAYOUT_CMD)
10531053

1054+
export RUN_LOG_NAME_STEM ?= run
1055+
10541056
.phony: run
10551057
run:
10561058
@mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
1057-
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/run.log))
1059+
($(OPENROAD_CMD) -no_splash $(if $(filter %.py,$(RUN_SCRIPT)),-python) $(RUN_SCRIPT) 2>&1 | tee $(abspath $(LOG_DIR)/$(RUN_LOG_NAME_STEM).log))
10581060

10591061
# Utilities
10601062
#-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)