diff options
| author | Simon John <git@the-jedi.co.uk> | 2015-04-04 00:58:30 +0100 |
|---|---|---|
| committer | Simon John <git@the-jedi.co.uk> | 2015-04-04 00:58:30 +0100 |
| commit | c67f07fab89ad50362b3be48bfbb7fe9aa005d1a (patch) | |
| tree | ae4453d0869b836d27c789ce5f5e35c569be7f79 /Arduino.mk | |
| parent | cfe83bca2033cdefd9208c8db9bce1c225843ef7 (diff) | |
Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
