Complement for SKIP_TARGET PR #3545 to skip same targets for clean_all etc.
This commit is contained in:
parent
dcc600a78b
commit
5c413726fa
6
Makefile
6
Makefile
|
@ -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) :
|
||||
|
|
Loading…
Reference in New Issue