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
This commit is contained in:
Ștefan Talpalaru 2020-05-22 15:31:19 +02:00
parent 252af3e779
commit 78eef09601
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -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; }