diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index d9fe585..bfa5fe6 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -183,7 +183,9 @@ endif # Some paths # -ifneq (ARDUINO_DIR,) +ifeq ($(wildcard $(ARDUINO_DIR)),) +$(error "Error: the ARDUINO_DIR variable must point to your Arduino IDE installation") +endif ifndef AVR_TOOLS_PATH AVR_TOOLS_PATH = $(ARDUINO_DIR)/hardware/tools @@ -221,8 +223,6 @@ ifndef ARDUINO_VAR_PATH ARDUINO_VAR_PATH = $(ARDUINO_DIR)/hardware/arduino/variants endif -endif - ######################################################################## # boards.txt parsing # diff --git a/arduino-mk/chipKIT.mk b/arduino-mk/chipKIT.mk index 3126991..d776933 100644 --- a/arduino-mk/chipKIT.mk +++ b/arduino-mk/chipKIT.mk @@ -13,6 +13,12 @@ OSTYPE := $(shell uname) +ifeq ($(wildcard $(MPIDE_DIR)),) +$(error "Error: the MPIDE_DIR variable must point to your MPIDE installation") +endif + +ARDUINO_DIR = $(MPIDE_DIR) + AVR_TOOLS_PATH = $(ARDUINO_DIR)/hardware/pic32/compiler/pic32-tools/bin ifneq ($(OSTYPE),Linux)