Skip to content

Commit

Permalink
Merge pull request #149 from nitz/sorry-my-build-env-is-absolute-nons…
Browse files Browse the repository at this point in the history
…ense

Fixing Windows not playing nicely with mkdir.
  • Loading branch information
hathach authored Jul 17, 2020
2 parents 764147d + 73ec884 commit 0b3c515
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ GDB = $(CROSS_COMPILE)gdb
NRFUTIL = adafruit-nrfutil
NRFJPROG = nrfjprog

MK = mkdir -p
# Set make directory command, Windows tries to create a directory named "-p" if that flag is there.
ifneq ($(OS), Windows_NT)
MK = mkdir -p
else
MK = mkdir
endif

RM = rm -rf

# auto-detect BMP on macOS, otherwise have to specify
Expand Down Expand Up @@ -324,7 +330,7 @@ print-%:

# Create build directories
$(BUILD):
@$(MK) $@
@$(MK) "$@"

clean:
@$(RM) $(BUILD)
Expand Down

0 comments on commit 0b3c515

Please sign in to comment.