Makefile.rules: Clean ccache cache for 'clobber'.

In the chroot, we use ccache to speed up compilation.  However, it's
possible for this cache to become corrupt which could lead to slower
builds.  In order to keep things fresh, 'make clobber' should clean up
that ccache cache as well.  This commit makes it so.

Note, this is NOT *clearing* the cache entirely.

BUG=chromium:681961
BRANCH=None
TEST=make clobber; verify that ccache is cleaned.

Change-Id: I8ccd7df4858c445485ed740843f3126af0abd33a
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/433108
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Aseda Aboagye
2017-01-25 17:31:00 -08:00
committed by chrome-bot
parent bb55470b0e
commit 1f52e64ae6

View File

@@ -419,6 +419,9 @@ clean:
.PHONY: clobber
clobber:
-rm -rf build TAGS cscope.files cscope.out
ifneq ($(CCACHE),)
$(CCACHE) -c
endif
.PHONY: help
help: