Makefile: Update clean targets

- Clean utilities directories on clean & distclean
- Have the distclean target clean up after 'what-jenkins-does'

Change-Id: I7d25d8234528b19bf36df6845a4500dbe1cbf9a4
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/19000
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Martin Roth 2017-03-26 18:49:02 -06:00 committed by Stefan Reinauer
parent 05782384a7
commit 20cd54fff1
1 changed files with 11 additions and 2 deletions

View File

@ -407,7 +407,7 @@ doxygen-clean:
clean-for-update: doxygen-clean clean-for-update-target
rm -rf $(obj) .xcompile
clean: clean-for-update clean-target
clean: clean-for-update clean-target clean-utils
rm -f .ccwrap
clean-cscope:
@ -416,8 +416,17 @@ clean-cscope:
clean-ctags:
rm -f tags
distclean: clean clean-ctags clean-cscope distclean-payloads
clean-utils:
$(foreach tool, $(TOOLLIST), $(MAKE) -C util/$(tool) clean MFLAGS= MAKEFLAGS= ;)
distclean-utils:
$(foreach tool, $(TOOLLIST), $(MAKE) -C util/$(tool) distclean MFLAGS= MAKEFLAGS= ;
rm -f /util/$(tool)/junit.xml;)
distclean: clean clean-ctags clean-cscope distclean-payloads distclean-utils
rm -f .config .config.old ..config.tmp* .kconfig.d .tmpconfig* .ccwrap .xcompile
rm -rf coreboot-builds coreboot-builds-chromeos
rm -f abuild*.xml junit.xml* util/lint/junit.xml
.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy doxygen_simple
.PHONY: ctags-project cscope-project clean-ctags