Skip to content

Commit 4ac2d01

Browse files
authored
Merge pull request #1936 from Pinata-Consulting/makefile-cleanup
makefile: put copyright.txt marker file into OBJECTS_DIR
2 parents 2f1417b + 99cd4b1 commit 4ac2d01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

flow/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ settings.mk
22
vars.sh
33
vars.gdb
44
vars.tcl
5-
copyright.txt

flow/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,10 @@ UNSET_VARS = for var in $(UNSET_VARIABLES_NAMES); do unset $$var; done
536536
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)
537537
UNSET_AND_MAKE = @bash -c '$(UNSET_VARS); $(SUB_MAKE) $$@' --
538538

539-
copyright.txt:
539+
$(OBJECTS_DIR)/copyright.txt:
540540
@$(OPENROAD_CMD) $(SCRIPTS_DIR)/noop.tcl
541-
@touch copyright.txt
541+
mkdir -p $(OBJECTS_DIR)
542+
@touch $(OBJECTS_DIR)/copyright.txt
542543

543544
# Separate dependency checking and doing a step. This can
544545
# 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)
570571
$$(UNSET_AND_MAKE) do-$(1)
571572

572573
.PHONY: do-$(1)
573-
do-$(1): copyright.txt
574+
do-$(1): $(OBJECTS_DIR)/copyright.txt
574575
@echo Running $(3).tcl, stage $(1)
575576
@(trap 'mv $(LOG_DIR)/$(1).tmp.log $(LOG_DIR)/$(1).log' EXIT; \
576577
$(OPENROAD_CMD) $(SCRIPTS_DIR)/noop.tcl 2>&1 >$(LOG_DIR)/$(1).tmp.log; \
@@ -985,7 +986,7 @@ nuke: clean_test clean_issues
985986
rm -rf ./results ./logs ./reports ./objects
986987
rm -rf layer_*.mps macrocell.list *best.plt *_pdn.def
987988
rm -rf *.rpt *.rpt.old *.def.v pin_dumper.log
988-
rm -f versions.txt copyright.txt dummy.guide
989+
rm -f versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide
989990

990991
.PHONY: vars
991992
vars:

0 commit comments

Comments
 (0)