@@ -536,6 +536,10 @@ UNSET_VARS = for var in $(UNSET_VARIABLES_NAMES); do unset $$var; done
536536SUB_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 )
537537UNSET_AND_MAKE = @bash -c '$(UNSET_VARS ) ; $(SUB_MAKE ) $$@ ' --
538538
539+ copyright.txt :
540+ @$(OPENROAD_CMD ) $(SCRIPTS_DIR ) /noop.tcl
541+ @touch copyright.txt
542+
539543# Separate dependency checking and doing a step. This can
540544# be useful to retest a stage without having to delete the
541545# target, or when building a wafer thin layer on top of
@@ -566,10 +570,12 @@ $(if $(5),$(5),$(RESULTS_DIR))/$(1)$(if $(4),$(4),.odb): $(2)
566570 $$(UNSET_AND_MAKE ) do-$(1 )
567571
568572.PHONY: do-$(1 )
569- do-$(1 ) :
570- (trap 'mv $(LOG_DIR ) /$(1 ) .tmp.log $(LOG_DIR ) /$(1 ) .log' EXIT; \
571- $(TIME_CMD ) $(OPENROAD_CMD ) $(SCRIPTS_DIR ) /$(3 ) .tcl -metrics $(LOG_DIR ) /$(1 ) .json) 2>&1 | \
572- tee $(LOG_DIR ) /$(1 ) .tmp.log
573+ do-$(1 ) : copyright.txt
574+ @echo Running $(3 ) .tcl
575+ @(trap 'mv $(LOG_DIR ) /$(1 ) .tmp.log $(LOG_DIR ) /$(1 ) .log' EXIT; \
576+ $(OPENROAD_CMD ) $(SCRIPTS_DIR ) /noop.tcl 2>&1 >$(LOG_DIR ) /$(1 ) .tmp.log; \
577+ $(TIME_CMD ) $(OPENROAD_CMD ) -no_splash $(SCRIPTS_DIR ) /$(3 ) .tcl -metrics $(LOG_DIR ) /$(1 ) .json 2>&1 | \
578+ tee -a $(LOG_DIR ) /$(1 ) .tmp.log)
573579endef
574580
575581# generate make rules to copy a file, if a dependency change and
@@ -1015,9 +1021,9 @@ clean_all: clean_synth clean_floorplan clean_place clean_cts clean_route clean_f
10151021.PHONY : nuke
10161022nuke : clean_test clean_issues
10171023 rm -rf ./results ./logs ./reports ./objects
1018- rm -rf layer_* .mps macrocell.list * best.plt * _pdn.def dummy.guide
1024+ rm -rf layer_* .mps macrocell.list * best.plt * _pdn.def
10191025 rm -rf * .rpt * .rpt.old * .def.v pin_dumper.log
1020- rm -rf versions.txt
1026+ rm -f versions.txt copyright.txt dummy.guide
10211027
10221028.PHONY : vars
10231029vars :
0 commit comments