From cd5f66652bd405872fc33ca6410dc8f9b51fee09 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Fri, 1 Jan 2021 11:46:04 +0100 Subject: build: use ccache -C for cleaning the cache This keeps the configuration, like the size of the cache, and the statistics intact. Move the removal of the cache directory to the distclean target, but only delete the .ccache directory inside of our build tree, as we should not mess with a user-configured external ccache directory this destructively. Signed-off-by: Sven Wegener --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f1577ad4d1..0144b0c5ff 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ dirclean: clean cacheclean: ifneq ($(CONFIG_CCACHE),) - rm -rf $(CCACHE_DIR) + $(STAGING_DIR_HOST)/bin/ccache -C endif ifndef DUMP_TARGET_DB -- cgit v1.2.3