From c67f07fab89ad50362b3be48bfbb7fe9aa005d1a Mon Sep 17 00:00:00 2001 From: Simon John Date: Sat, 4 Apr 2015 00:58:30 +0100 Subject: Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX --- Arduino.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index 768aaf6..b5b2064 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -357,7 +357,9 @@ ifndef ARDUINO_SKETCHBOOK ifneq ($(ARDUINO_SKETCHBOOK),) $(call show_config_variable,ARDUINO_SKETCHBOOK,[AUTODETECTED],(from arduino preferences file)) else - ARDUINO_SKETCHBOOK := $(HOME)/sketchbook + ARDUINO_SKETCHBOOK := $(firstword \ + $(call dir_if_exists,$(HOME)/sketchbook) \ + $(call dir_if_exists,$(HOME)/Documents/Arduino) ) $(call show_config_variable,ARDUINO_SKETCHBOOK,[DEFAULT]) endif else -- cgit v1.2.3