You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
702 B

7 years ago
# clean all for rebuild (except the toolchain)
rebuild-clean:
-rm -rf $(BUILD_TMP)
-rm -rf $(TARGETPREFIX)
-rm -rf $(D)
staging-clean:
-rm -rf $(STAGING_DIR)
static-clean:
-rm -rf $(STATIC_DIR)
7 years ago
all-clean: rebuild-clean staging-clean static-clean
@echo -e "\n$(TERM_RED_BOLD)Any other key then CTRL-C will now remove CROSS_BASE and HOSTPREFIX$(TERM_NORMAL)"
7 years ago
@read
-rm -rf $(CROSS_BASE)
-rm -rf $(HOSTPREFIX)
%-clean:
cd $(D) && find . -name $(subst -clean,,$@) -delete
ni-clean \
clean: rebuild-clean pkg-clean bootstrap
clean-all:
make update-all
make staging-clean
make clean
ccache-clean:
@echo "Clearing $$CCACHE_DIR"
@$(CCACHE) -C
7 years ago
PHONY += rebuild-clean all-clean pkg-clean