diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-08-20 18:08:47 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-08-20 18:09:16 +0100 |
commit | 2b9a8d13c88a621cc094689082f48d1299ce9590 (patch) | |
tree | 68294be4f972ec4d33fdbe0f27a568c8e25b8683 | |
parent | e461d9879b6859c6ca34b3512412f2dee3d36f4d (diff) | |
download | netsurf-2b9a8d13c88a621cc094689082f48d1299ce9590.tar.gz netsurf-2b9a8d13c88a621cc094689082f48d1299ce9590.tar.bz2 |
enable ccache where available
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -187,10 +187,6 @@ ifeq ($(TARGET),riscos) EXEEXT := ,ff8 endif PKG_CONFIG := $(GCCSDK_INSTALL_ENV)/ro-pkg-config - CCACHE := $(shell which ccache) - ifneq ($(CCACHE),) - CC := $(CCACHE) $(CC) - endif endif else ifeq ($(TARGET),beos) @@ -267,8 +263,14 @@ else endif endif -# Target paths +# CCACHE +ifeq ($(origin CCACHE),undefined) + CCACHE=$(shell ccache -V >/dev/null 2>&1 && echo ccache || echo) +endif +CC := $(CCACHE) $(CC) + +# Target paths OBJROOT = build-$(HOST)-$(TARGET)$(SUBTARGET) DEPROOT := $(OBJROOT)/deps TOOLROOT := $(OBJROOT)/tools |