From 5c413726fa168f982e28c274b5df26333700e448 Mon Sep 17 00:00:00 2001 From: "brucesdad13@gmail.com" Date: Wed, 19 Jul 2017 20:15:29 -0400 Subject: [PATCH] Complement for SKIP_TARGET PR #3545 to skip same targets for clean_all etc. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8b3b936b6..c431a8c7ee 100644 --- a/Makefile +++ b/Makefile @@ -1367,7 +1367,11 @@ clean_test: ## clean_ : clean up one specific target $(CLEAN_TARGETS) : - $(V0) $(MAKE) -j TARGET=$(subst clean_,,$@) clean + $(V0) $(if $(findstring $(subst clean_,,$@),$(SKIP_TARGETS)), \ + @echo "" && \ + echo "Not cleaning $(subst clean_,,$@) since it is listed in SKIP_TARGETS.", \ + @echo "" && \ + $(V0) $(MAKE) -j TARGET=$(subst clean_,,$@) clean) ## _clean : clean up one specific target (alias for above) $(TARGETS_CLEAN) :