Makefile: move check-if-root earlier

Somebody who might invoke make as root might also invoke make with -j,
so don't start building in that case.

Change-Id: I0c87aba948cd78a23ad4c49f880700f65684424c
This commit is contained in:
Michael Stahl 2016-06-23 14:34:15 +02:00
parent 8d861bd702
commit 496cba2e8b

View file

@ -50,7 +50,7 @@ $(BUILDDIR)/config_host.mk : $(wildcard \
else # MAKE_RESTARTS
all: check-if-root build
all: build
check-if-root:
@if test `id -u` = 0; then \
@ -240,9 +240,9 @@ fetch:
endif
#
# Bootstap
# Bootstrap
#
bootstrap: compilerplugins
bootstrap: check-if-root compilerplugins
#
# Build