From 29754c7563bee731ae570005948f81dc4dfcc8df Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Tue, 21 Dec 2021 19:00:43 -0500 Subject: [PATCH] Makefile: avoid race condition if building in parallel. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 690aa26..9be8fbf 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,10 @@ EXCLUDE_PROGS ?= rm DESTDIR ?= / .PHONY: all debug clean build-release install -all: $(shell mkdir -p bin) -all: ${PROGS} -all: dbox +all: + @$(shell mkdir -p bin) + @$(MAKE) -s ${PROGS} + @$(MAKE) -s dbox ${PROGS}: @echo Building $@..