From 78eef09601b85d926c986cda91e3f34dba4e7733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Fri, 22 May 2020 15:31:19 +0200 Subject: [PATCH] avoid a rare race in the "build" target when two Make instances run in parallel and the timing is just right for one of them to create the dir after the other checked for its existence, but before it tries to create it --- makefiles/targets.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index 00a620e..6f3a141 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -14,7 +14,7 @@ $(SILENT_TARGET_PREFIX).SILENT: # dir build: - mkdir $@ + mkdir -p $@ sanity-checks: which $(CC) &>/dev/null || { echo "C compiler ($(CC)) not installed. Aborting."; exit 1; }