From 99cd4b1f4b6bda0e81da6e0c4c744c33f7551eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sun, 14 Apr 2024 00:52:24 +0200 Subject: [PATCH] makefile: put copyright.txt marker file into OBJECTS_DIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- flow/.gitignore | 1 - flow/Makefile | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flow/.gitignore b/flow/.gitignore index 2edcd5f0bf..a08f9fc5cb 100644 --- a/flow/.gitignore +++ b/flow/.gitignore @@ -2,4 +2,3 @@ settings.mk vars.sh vars.gdb vars.tcl -copyright.txt diff --git a/flow/Makefile b/flow/Makefile index a2231f849d..2b69d02ab4 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -536,9 +536,10 @@ UNSET_VARS = for var in $(UNSET_VARIABLES_NAMES); do unset $$var; done SUB_MAKE = $(MAKE) $(foreach V,$(COMMAND_LINE_ARGS), $(if $($V),$V=$(shell echo "$($V)" | $(FLOW_HOME)/scripts/escape.sh),$V='')) --no-print-directory DESIGN_CONFIG=$(DESIGN_CONFIG) UNSET_AND_MAKE = @bash -c '$(UNSET_VARS); $(SUB_MAKE) $$@' -- -copyright.txt: +$(OBJECTS_DIR)/copyright.txt: @$(OPENROAD_CMD) $(SCRIPTS_DIR)/noop.tcl - @touch copyright.txt + mkdir -p $(OBJECTS_DIR) + @touch $(OBJECTS_DIR)/copyright.txt # Separate dependency checking and doing a step. This can # be useful to retest a stage without having to delete the @@ -570,7 +571,7 @@ $(if $(5),$(5),$(RESULTS_DIR))/$(1)$(if $(4),$(4),.odb): $(2) $$(UNSET_AND_MAKE) do-$(1) .PHONY: do-$(1) -do-$(1): copyright.txt +do-$(1): $(OBJECTS_DIR)/copyright.txt @echo Running $(3).tcl, stage $(1) @(trap 'mv $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log' EXIT; \ $(OPENROAD_CMD) $(SCRIPTS_DIR)/noop.tcl 2>&1 >$(LOG_DIR)/$(1).tmp.log; \ @@ -985,7 +986,7 @@ nuke: clean_test clean_issues rm -rf ./results ./logs ./reports ./objects rm -rf layer_*.mps macrocell.list *best.plt *_pdn.def rm -rf *.rpt *.rpt.old *.def.v pin_dumper.log - rm -f versions.txt copyright.txt dummy.guide + rm -f versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide .PHONY: vars vars: