From f66175beea2e21b5103517926e35a644a737fce9 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 10 Jul 2012 13:47:17 -0700 Subject: [PATCH] Added support to avoid the mkdir BIN race condition in parallel make --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 2f465e53..372dbe41 100644 --- a/makefile +++ b/makefile @@ -269,7 +269,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) NETWORK_OPT = $(NETWORK_CCDEFS) endif ifneq (binexists,$(shell if $(TEST) -e BIN; then echo binexists; fi)) - MKDIRBIN = if $(TEST) ! -e BIN; then mkdir BIN; fi + MKDIRBIN = mkdir -p BIN endif else #Win32 Environments (via MinGW32)