Skip to content

Commit 4110ff9

Browse files
committed
makefile: add clean_abstract
fixes strange errors in generate_abstract if a .lef file is lying around from a previous failed run Signed-off-by: Øyvind Harboe <[email protected]>
1 parent ca88d27 commit 4110ff9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flow/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,10 @@ skip_route: $(RESULTS_DIR)/4_cts.odb $(RESULTS_DIR)/4_cts.sdc
730730
generate_abstract: $(RESULTS_DIR)/6_final.gds $(RESULTS_DIR)/6_final.def $(RESULTS_DIR)/6_final.v
731731
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/generate_abstract.tcl -metrics $(LOG_DIR)/generate_abstract.json) 2>&1 | tee $(LOG_DIR)/generate_abstract.log
732732

733+
.PHONY: clean_abstract
734+
clean_abstract:
735+
rm -f $(RESULTS_DIR)/$(DESIGN_NAME).lib $(RESULTS_DIR)/$(DESIGN_NAME).lef
736+
733737
# Merge wrapped macros using Klayout
734738
#-------------------------------------------------------------------------------
735739
$(WRAPPED_GDSOAS): $(OBJECTS_DIR)/klayout_wrap.lyt $(WRAPPED_LEFS)
@@ -829,7 +833,7 @@ clean:
829833
@echo
830834

831835
.PHONY: clean_all
832-
clean_all: clean_synth clean_floorplan clean_place clean_cts clean_route clean_finish clean_metadata
836+
clean_all: clean_synth clean_floorplan clean_place clean_cts clean_route clean_finish clean_metadata clean_abstract
833837
rm -rf $(OBJECTS_DIR)
834838

835839
.PHONY: nuke

0 commit comments

Comments
 (0)