Makefile: avoid race condition if building in parallel.

master
Drake 2 years ago
parent 35e0d2c66e
commit 29754c7563

@ -9,9 +9,10 @@ EXCLUDE_PROGS ?= rm
DESTDIR ?= / DESTDIR ?= /
.PHONY: all debug clean build-release install .PHONY: all debug clean build-release install
all: $(shell mkdir -p bin) all:
all: ${PROGS} @$(shell mkdir -p bin)
all: dbox @$(MAKE) -s ${PROGS}
@$(MAKE) -s dbox
${PROGS}: ${PROGS}:
@echo Building $@.. @echo Building $@..

Loading…
Cancel
Save