Complement for SKIP_TARGET PR #3545 to skip same targets for clean_all etc.

This commit is contained in:
brucesdad13@gmail.com 2017-07-19 20:15:29 -04:00
parent dcc600a78b
commit 5c413726fa
1 changed files with 5 additions and 1 deletions

View File

@ -1367,7 +1367,11 @@ clean_test:
## clean_<TARGET> : 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)
## <TARGET>_clean : clean up one specific target (alias for above)
$(TARGETS_CLEAN) :