Simplify finding arduino dir

This commit is contained in:
Ryan Pavlik 2012-07-05 14:39:32 -05:00
parent 744cb5350d
commit 940a6b6ecc

View file

@ -266,17 +266,11 @@ $(call show_separator)
$(info Arduino.mk Configuration:) $(info Arduino.mk Configuration:)
ifndef ARDUINO_DIR ifndef ARDUINO_DIR
NIX_DEFAULT_ARDUINO_DIR := $(call dir_if_exists,/usr/share/arduino) AUTO_ARDUINO_DIR := $(firstword \
ifdef NIX_DEFAULT_ARDUINO_DIR $(call dir_if_exists,/usr/share/arduino) \
ARDUINO_DIR = $(NIX_DEFAULT_ARDUINO_DIR) $(call dir_if_exists,/Applications/Arduino.app/Contents/Resources/Java) )
endif ifdef AUTO_ARDUINO_DIR
ARDUINO_DIR = $(AUTO_ARDUINO_DIR)
MAC_DEFAULT_ARDUINO_DIR := $(call dir_if_exists,/Applications/Arduino.app/Contents/Resources/Java)
ifdef MAC_DEFAULT_ARDUINO_DIR
ARDUINO_DIR = $(MAC_DEFAULT_ARDUINO_DIR)
endif
ifdef ARDUINO_DIR
$(call show_config_info,ARDUINO_DIR,[AUTODETECTED]) $(call show_config_info,ARDUINO_DIR,[AUTODETECTED])
endif endif