From ce1e046912189d0e0d05b042e7f8c19c1a462dba Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 4 Jan 2014 20:56:01 -0500 Subject: [PATCH] Add support for autodetecting the mac's alternate platforms dir --- build/arduino-mk/Arduino.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/arduino-mk/Arduino.mk b/build/arduino-mk/Arduino.mk index 3ecfbb50..cde71fad 100644 --- a/build/arduino-mk/Arduino.mk +++ b/build/arduino-mk/Arduino.mk @@ -335,7 +335,10 @@ 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