diff --git a/Makefile b/Makefile index 90a221d2a..281b169c6 100644 --- a/Makefile +++ b/Makefile @@ -548,8 +548,8 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src # Find out if ccache is installed on the system CCACHE := ccache -RESULT = $(shell which $(CCACHE)) -ifeq ($(RESULT),) +RESULT = $(shell (which $(CCACHE) > /dev/null 2>&1; echo $$?) ) +ifneq ($(RESULT),0) CCACHE := endif