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 | |
| parent | cfe83bca2033cdefd9208c8db9bce1c225843ef7 (diff) | |
Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX
| -rw-r--r-- | Arduino.mk | 4 | ||||
| -rw-r--r-- | Common.mk | 3 | ||||
| -rw-r--r-- | HISTORY.md | 1 |
3 files changed, 6 insertions, 2 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 @@ -68,7 +68,8 @@ endif ifndef ARDUINO_DIR AUTO_ARDUINO_DIR := $(firstword \ $(call dir_if_exists,/usr/share/arduino) \ - $(call dir_if_exists,/Applications/Arduino.app/Contents/Resources/Java) ) + $(call dir_if_exists,/Applications/Arduino.app/Contents/Resources/Java) \ + $(call dir_if_exists,/Applications/Arduino.app/Contents/Java) ) ifdef AUTO_ARDUINO_DIR ARDUINO_DIR = $(AUTO_ARDUINO_DIR) $(call show_config_variable,ARDUINO_DIR,[AUTODETECTED]) @@ -32,6 +32,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it - Tweak: Add BOARD_SUB to OBJDIR if defined in 1.5+ (https://github.com/sej7278) - Tweak: Add = to PARSE_BOARD regex to make it less greedy and not match vid.0, vid.1 and vid (https://github.com/sej7278) - Tweak: Added note about clock submenu's being used as F_CPU (https://github.com/sej7278) +- Tweak: Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX (https://github.com/sej7278) - Fix: Improved Windows (Cygwin/MSYS) support (https://github.com/PeterMosmans) - Fix: Change "tinyladi" username to "ladislas" in HISTORY.md. (https://github.com/ladislas) |
