diff options
author | Martin Roth <gaumless@gmail.com> | 2017-03-26 18:49:02 -0600 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-07-01 00:31:05 +0000 |
commit | 20cd54fff1351ae381ecbc104ac72057f3debcc1 (patch) | |
tree | c83fa353925b448e5bcf24967ed0067f8806871c | |
parent | 05782384a7f43cb926794ff0c59b86a9159373ad (diff) |
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>
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |