diff options
| author | John Whittington <john.whittington@cruxproductdesign.com> | 2017-09-06 10:34:07 +0100 |
|---|---|---|
| committer | John Whittington <john.whittington@cruxproductdesign.com> | 2017-09-06 10:34:07 +0100 |
| commit | 42b5d2dbd85ab7a51f3bc301a74a00862433ac2a (patch) | |
| tree | 730f414db903e4d89b4807ac44af02b5cf7a281d /Common.mk | |
| parent | e413feedbb81df8c23e5a77bb11e827e28ff510c (diff) | |
Auto detect Windows sketchbook path using USERPROFILE not HOME and spelling
Diffstat (limited to 'Common.mk')
| -rw-r--r-- | Common.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
