1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-12 00:30:16 +02:00

fix ccache build (#1415)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6412 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-02-27 23:44:04 +00:00
parent 8ab2244c0d
commit f53ddba440

View File

@ -19,11 +19,7 @@ PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/host-build.mk
ifneq ($(shell which ccache),)
define Build/Configure
$(call Build/Configure/Default)
endef
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
define Build/Compile
$(MAKE) CC="$(HOSTCC)" -C $(PKG_BUILD_DIR)
endef
@ -35,8 +31,19 @@ ifneq ($(shell which ccache),)
endef
define Build/Clean
$(MAKE) -C $(PKG_BUILD_DIR) uninstall
-$(MAKE) -C $(PKG_BUILD_DIR) uninstall
-$(MAKE) -C $(PKG_BUILD_DIR) clean
$(call Build/Clean/Default)
endef
else
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Build/Clean
endef
endif
$(eval $(call HostBuild))