We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 764147d + 73ec884 commit 0b3c515Copy full SHA for 0b3c515
Makefile
@@ -47,7 +47,13 @@ GDB = $(CROSS_COMPILE)gdb
47
NRFUTIL = adafruit-nrfutil
48
NRFJPROG = nrfjprog
49
50
-MK = mkdir -p
+# Set make directory command, Windows tries to create a directory named "-p" if that flag is there.
51
+ifneq ($(OS), Windows_NT)
52
+ MK = mkdir -p
53
+else
54
+ MK = mkdir
55
+endif
56
+
57
RM = rm -rf
58
59
# auto-detect BMP on macOS, otherwise have to specify
@@ -324,7 +330,7 @@ print-%:
324
330
325
331
# Create build directories
326
332
$(BUILD):
327
- @$(MK) $@
333
+ @$(MK) "$@"
328
334
329
335
clean:
336
@$(RM) $(BUILD)
0 commit comments