From ebf2db3468e1dac01603d7a07700420606972c68 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 26 Aug 2019 23:33:27 +0200 Subject: [PATCH] - clean.mk: add build-clean target; minor changes --- make/clean.mk | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/make/clean.mk b/make/clean.mk index ac6de160..8219214a 100644 --- a/make/clean.mk +++ b/make/clean.mk @@ -3,6 +3,9 @@ # # ----------------------------------------------------------------------------- +build-clean: + -rm -rf $(BUILD_TMP) + cross-base-clean: -rm -rf $(CROSS_BASE) @@ -34,26 +37,23 @@ ccache-clean: @echo "Clearing $$CCACHE_DIR" @$(CCACHE) -C -rebuild-clean: target-clean deps-clean host-bin-config-clean - -rm -rf $(BUILD_TMP) +rebuild-clean: host-bin-config-clean target-clean deps-clean build-clean all-clean: rebuild-clean staging-clean host-clean static-base-clean @echo -e "\n$(TERM_RED_BOLD)Any other key then CTRL-C will now remove CROSS_BASE$(TERM_NORMAL)" @read make cross-base-clean -%-clean: - -find $(D) -name $(subst -clean,,$(@)) -delete - clean: rebuild-clean bootstrap -clean-all: - make update-all - make staging-clean - make clean +clean-all: update-all staging-clean clean + +%-clean: + -find $(D) -name $(subst -clean,,$(@)) -delete # ----------------------------------------------------------------------------- +PHONY += build-clean PHONY += cross-base-clean PHONY += cross-clean PHONY += deps-clean @@ -66,6 +66,6 @@ PHONY += target-clean PHONY += ccache-clean PHONY += rebuild-clean PHONY += all-clean -PHONY += %-clean PHONY += clean PHONY += clean-all +PHONY += %-clean