aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2015-04-04 00:58:30 +0100
committerSimon John <git@the-jedi.co.uk>2015-04-04 00:58:30 +0100
commitc67f07fab89ad50362b3be48bfbb7fe9aa005d1a (patch)
treeae4453d0869b836d27c789ce5f5e35c569be7f79 /Arduino.mk
parentcfe83bca2033cdefd9208c8db9bce1c225843ef7 (diff)
Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk4
1 files changed, 3 insertions, 1 deletions
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