Skip to content

Commit

Permalink
Change the clean target
Browse files Browse the repository at this point in the history
-Move the clean of the bender maually at the end of the "make clean" (at the root Makefile) so there will be no fetching during the clean process
  • Loading branch information
Konste11ation committed Sep 1, 2024
1 parent 617a373 commit ff7554b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ clean:
make -C ./target/fpga/sw clean
make -C ./target/fpga/bootrom clean
make -C ./target/tapeout clean
rm -rf Bender.lock .bender deps
rm -rf ./target/rtl/src/bender_targets.tmp

# Software Generation
bootrom: # In Occamy Docker
Expand Down
10 changes: 5 additions & 5 deletions target/rtl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ FORCE:

.PHONY: all clean
all: rtl
clean: clean-bender clean-rtl
clean: clean-rtl

########
# Util #
########

.PHONY: clean-bender
# .PHONY: clean-bender

clean-bender:
rm -rf $(ROOT)/Bender.lock $(ROOT)/.bender/ $(ROOT)/deps
rm -rf src/bender_targets.tmp
# clean-bender:
# rm -rf $(ROOT)/Bender.lock $(ROOT)/.bender/ $(ROOT)/deps
# rm -rf src/bender_targets.tmp

###############
# RTL sources #
Expand Down
8 changes: 4 additions & 4 deletions target/sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CFG_OVERRIDE ?= # Override default config file
.DEFAULT_GOAL := help
.PHONY: all clean
all: rtl sw addrmap
clean: clean-bender clean-rtl clean-sw clean-addrmap clean-vlt clean-vsim clean-vcs clean-logs clean-work clean-bootrom
clean: clean-rtl clean-sw clean-addrmap clean-vlt clean-vsim clean-vcs clean-logs clean-work clean-bootrom

############
# Makefrag #
Expand Down Expand Up @@ -452,14 +452,14 @@ clean-vcs: clean-work
# Util #
########

.PHONY: clean-work clean-bender clean-logs help
.PHONY: clean-work clean-logs help

clean-work:
rm -rf work
rm -rf work-vsim

clean-bender:
rm -rf $(ROOT)/Bender.lock $(ROOT)/.bender/ $(ROOT)/deps
# clean-bender:
# rm -rf $(ROOT)/Bender.lock $(ROOT)/.bender/ $(ROOT)/deps

clean-logs:
rm -rf $(LOGS_DIR)/
Expand Down

0 comments on commit ff7554b

Please sign in to comment.