Skip to content
Snippets Groups Projects
Commit cd5f6665 authored by Sven Wegener's avatar Sven Wegener Committed by Paul Spooren
Browse files

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: default avatarSven Wegener <sven.wegener@stealer.net>
parent e02a41f6
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ dirclean: clean ...@@ -64,7 +64,7 @@ dirclean: clean
cacheclean: cacheclean:
ifneq ($(CONFIG_CCACHE),) ifneq ($(CONFIG_CCACHE),)
rm -rf $(CCACHE_DIR) $(STAGING_DIR_HOST)/bin/ccache -C
endif endif
ifndef DUMP_TARGET_DB ifndef DUMP_TARGET_DB
......
...@@ -261,8 +261,8 @@ package/symlinks-clean: ...@@ -261,8 +261,8 @@ package/symlinks-clean:
help: help:
cat README.md cat README.md
distclean: cacheclean distclean:
rm -rf bin build_dir .config* dl feeds key-build* logs package/feeds package/openwrt-packages staging_dir tmp rm -rf bin build_dir .ccache .config* dl feeds key-build* logs package/feeds package/openwrt-packages staging_dir tmp
@$(_SINGLE)$(SUBMAKE) -C scripts/config clean @$(_SINGLE)$(SUBMAKE) -C scripts/config clean
ifeq ($(findstring v,$(DEBUG)),) ifeq ($(findstring v,$(DEBUG)),)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment