build: use ccache -C for cleaning the cache
authorSven Wegener <sven.wegener@stealer.net>
Fri, 1 Jan 2021 10:46:04 +0000 (11:46 +0100)
committerPaul Spooren <mail@aparcar.org>
Thu, 7 Jan 2021 01:31:18 +0000 (15:31 -1000)
commitcd5f66652bd405872fc33ca6410dc8f9b51fee09
tree72e357ada8cc62c69b25aab088bd6aee6e33b0df
parente02a41f67db52726d3c2c9e4e50e51a5510e0a27
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 <sven.wegener@stealer.net>
Makefile
include/toplevel.mk