From 20cd54fff1351ae381ecbc104ac72057f3debcc1 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 26 Mar 2017 18:49:02 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/19000 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b711a4d9af..87576c8b3a 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3