From 9a45b800179efca8177678740ce9020390c0fd0e Mon Sep 17 00:00:00 2001 From: Simon John Date: Mon, 19 May 2014 22:09:00 +0100 Subject: Check that on windows ARDUINO_DIR (and MPIDE_DIR) is a relative path. Checks for paths starting with / e.g. /cydrive/arduino or a drive letter e.g. C:\Program Files\Arduino Fix #201 Fix #202 --- Arduino.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index a352628..42dfef0 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -279,6 +279,12 @@ else $(call show_config_variable,ARDUINO_DIR,[USER]) endif +ifeq ($(CURRENT_OS),WINDOWS) + ifneq ($(shell echo $(ARDUINO_DIR) | egrep '^(/|[a-zA-Z]:\\)'),) + echo $(error On Windows, ARDUINO_DIR must be a relative path) + endif +endif + ######################################################################## # Default TARGET to pwd (ex Daniele Vergini) -- cgit v1.2.3