Skip to content

Commit

Permalink
Merge pull request #1936 from Pinata-Consulting/makefile-cleanup
Browse files Browse the repository at this point in the history
makefile: put copyright.txt marker file into OBJECTS_DIR
  • Loading branch information
maliberty committed Apr 14, 2024
2 parents 2f1417b + 99cd4b1 commit 4ac2d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion flow/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ settings.mk
vars.sh
vars.gdb
vars.tcl
copyright.txt
9 changes: 5 additions & 4 deletions flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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; \
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4ac2d01

Please sign in to comment.