diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-06 13:27:11 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-06 13:27:11 +0000 |
commit | 0d08b7661121b5e68a980188316078ab5518c7c0 (patch) | |
tree | deed598b50e65f1e706caa3c581fd80570626fdf /tools/ccache/Makefile | |
parent | 5cdcae8e9bd01612ea4ba81dccf7cf1b6cd4552e (diff) |
[tools] add ccache wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32075 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/ccache/Makefile')
-rw-r--r-- | tools/ccache/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile index 9bc0b5901..8848fa510 100644 --- a/tools/ccache/Makefile +++ b/tools/ccache/Makefile @@ -17,6 +17,11 @@ PKG_CAT:=zcat include $(INCLUDE_DIR)/host-build.mk +define Host/Install/ccache + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/ + $(CP) ./files/* $(STAGING_DIR_HOST)/bin/ +endef + ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found) define Host/Compile $(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR) @@ -26,6 +31,10 @@ ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found) -$(MAKE) -C $(HOST_BUILD_DIR) uninstall $(call Host/Clean/Default) endef + define Host/Install + $(call Host/Install/Default) + $(call Host/Install/ccache) + endef else define Host/Prepare endef @@ -34,6 +43,7 @@ else define Host/Compile endef define Host/Install + $(call Host/Install/ccache) endef define Host/Clean endef |