From 11e2059009f7f3dfa7f1b2b6a8743c17f148691d Mon Sep 17 00:00:00 2001 From: John Whittington Date: Tue, 5 Sep 2017 17:12:22 +0100 Subject: Documentation changes for Windows usage --- Common.mk | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Common.mk') diff --git a/Common.mk b/Common.mk index e6e9369..c8fd05e 100644 --- a/Common.mk +++ b/Common.mk @@ -79,9 +79,3 @@ ifndef ARDUINO_DIR 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 -- cgit v1.2.3 From 42b5d2dbd85ab7a51f3bc301a74a00862433ac2a Mon Sep 17 00:00:00 2001 From: John Whittington Date: Wed, 6 Sep 2017 10:34:07 +0100 Subject: Auto detect Windows sketchbook path using USERPROFILE not HOME and spelling --- Common.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Common.mk') diff --git a/Common.mk b/Common.mk index c8fd05e..a8bd46a 100644 --- a/Common.mk +++ b/Common.mk @@ -79,3 +79,9 @@ ifndef ARDUINO_DIR else $(call show_config_variable,ARDUINO_DIR,[USER]) endif + +ifeq ($(CURRENT_OS),WINDOWS) + ifneq ($(shell echo $(ARDUINO_DIR) | egrep '\\|[[:space:]]|cygdrive'),) + echo $(error On Windows, ARDUINO_DIR and other defines must use forward slash and not contain spaces, special characters or be cygdrive relative) + endif +endif -- cgit v1.2.3