aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index ba16697..43e1bb8 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -266,7 +266,9 @@ endif
# Default TARGET to pwd (ex Daniele Vergini)
ifndef TARGET
- TARGET = $(notdir $(CURDIR))
+ space :=
+ space +=
+ TARGET = $(notdir $(subst $(space),_,$(CURDIR)))
endif
########################################################################