From ba436b9434fee60a78324eb4daaa2c60c6e32d54 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 16 Sep 2019 07:41:25 -0600 Subject: [PATCH] tools/Makefile.unix: Fix build error when issue 'make -B'. mkdir: cannot create directory 'staging': File exists: tools/Makefile.unix:269: recipe for target 'staging' failed' --- tools/Makefile.unix | 2 +- tools/Makefile.win | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/Makefile.unix b/tools/Makefile.unix index 8d633ce838..418e92078b 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -307,7 +307,7 @@ tools/mkconfig$(HOSTEXEEXT): $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkconfig$(HOSTEXEEXT) staging: - $(Q) mkdir staging + $(Q) mkdir -p staging include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig$(HOSTEXEEXT) $(Q) tools/mkconfig $(TOPDIR) > include/nuttx/config.h.tmp diff --git a/tools/Makefile.win b/tools/Makefile.win index ecc80b9ede..1fe2962dc5 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -286,7 +286,7 @@ tools\mkconfig$(HOSTEXEEXT): $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" mkconfig$(HOSTEXEEXT) staging: - $(Q) mkdir staging + $(Q) mkdir -p staging include\nuttx\config.h: $(TOPDIR)\.config tools\mkconfig$(HOSTEXEEXT) $(Q) tools\mkconfig$(HOSTEXEEXT) $(TOPDIR) > include\nuttx\config.h