From 311756ad56a7f7237e72fb279c0af21f82d70f6b Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 18 Mar 2018 19:54:13 -0700 Subject: [PATCH] Makefile.mak: allow parallel bin-wrappers creation Use `mkdir -p` instead of just `mkdir` so that a parallel make that simultaneously creates the directory in two threads will still succeed. The mkdir "-p" option IS specified by POSIX. Signed-off-by: Kyle J. McKay --- Makefile.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.mak b/Makefile.mak index 2025f4c..1f6d9c9 100644 --- a/Makefile.mak +++ b/Makefile.mak @@ -127,7 +127,7 @@ $(awk_out): Makefile TG-BUILD-SETTINGS mv "$@+" "$@" bin-wrappers/tg : tg - $(QWRAPPER){ [ -d bin-wrappers ] || mkdir bin-wrappers; } && \ + $(QWRAPPER){ [ -d bin-wrappers ] || mkdir -p bin-wrappers; } && \ echo '#!$(SHELL_PATH_SQ)' >"$@" && \ curdir="$$(pwd -P)" && \ echo "TG_INST_BINDIR='$$curdir' && export TG_INST_BINDIR" >>"$@" && \ @@ -139,7 +139,7 @@ bin-wrappers/tg : tg chmod a+x "$@" "$@x" bin-wrappers/pre-commit : hooks/pre-commit - $(QWRAPPER){ [ -d bin-wrappers ] || mkdir bin-wrappers; } && \ + $(QWRAPPER){ [ -d bin-wrappers ] || mkdir -p bin-wrappers; } && \ echo '#!$(SHELL_PATH_SQ)' >"$@" && \ curdir="$$(pwd -P)" && \ echo "TG_INST_BINDIR='$$curdir' && export TG_INST_BINDIR" >>"$@" && \ -- 2.11.4.GIT