Skip to content

Commit 08bfb90

Browse files
committed
makefile: versions.txt used by make issue is now in OBJECTS_DIR
this avoids having to add versions.txt to .gitignore for all projects that are using ORFS. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 470955d commit 08bfb90

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

flow/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,10 @@ $(foreach block,$(BLOCKS),$(eval ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(bloc
364364
#-------------------------------------------------------------------------------
365365
.PHONY: versions.txt
366366
versions.txt:
367-
@$(YOSYS_CMD) -V > $@
368-
@echo openroad `$(OPENROAD_EXE) -version` >> $@
369-
@$(KLAYOUT_CMD) -zz -v >> $@
367+
mkdir -p $(OBJECTS_DIR)
368+
@$(YOSYS_CMD) -V > $(OBJECTS_DIR)/$@
369+
@echo openroad `$(OPENROAD_EXE) -version` >> $(OBJECTS_DIR)/$@
370+
@$(KLAYOUT_CMD) -zz -v >> $(OBJECTS_DIR)/$@
370371

371372
# Pre-process libraries
372373
# ==============================================================================
@@ -992,7 +993,7 @@ nuke: clean_test clean_issues
992993
rm -rf ./results ./logs ./reports ./objects
993994
rm -rf layer_*.mps macrocell.list *best.plt *_pdn.def
994995
rm -rf *.rpt *.rpt.old *.def.v pin_dumper.log
995-
rm -f versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide
996+
rm -f $(OBJECTS_DIR)/versions.txt $(OBJECTS_DIR)/copyright.txt dummy.guide
996997

997998
.PHONY: vars
998999
vars:

0 commit comments

Comments
 (0)