From 7f3aeaf73fcefe97d9d69e242852092389923127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sun, 21 Jul 2024 12:02:02 +0200 Subject: [PATCH] makefile: make it easier to find log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use case is to follow logs of a running process on some computer without knowing the folder name of that process: - run ps -Af | grep openroad - run tail -f /5_3_route.tmp.log Signed-off-by: Øyvind Harboe --- flow/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/Makefile b/flow/Makefile index 53b46e95c2..f00c121617 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -630,7 +630,7 @@ do-$(1): $(OBJECTS_DIR)/copyright.txt trap 'mv $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log' EXIT; \ $(OPENROAD_EXE) -exit -no_init $(SCRIPTS_DIR)/noop.tcl 2>&1 >$(LOG_DIR)/$(1).tmp.log; \ $(TIME_CMD) $(OPENROAD_CMD) -no_splash $(SCRIPTS_DIR)/$(3).tcl -metrics $(LOG_DIR)/$(1).json 2>&1 | \ - tee -a $(LOG_DIR)/$(1).tmp.log) + tee -a $(abspath $(LOG_DIR)/$(1).tmp.log)) endef # generate make rules to copy a file, if a dependency change and