diff --git a/mk/spksrc.cross-cc.mk b/mk/spksrc.cross-cc.mk index f88a9d8df3e9..03e1b6ad8bbc 100644 --- a/mk/spksrc.cross-cc.mk +++ b/mk/spksrc.cross-cc.mk @@ -80,6 +80,9 @@ all-archs: $(addprefix arch-,$(AVAILABLE_TOOLCHAINS)) all-supported: SHELL:=/bin/bash all-supported: +ifeq ($(strip $(SUPPORTED_ARCHS)),) + $(MAKE) supported-arch-error +else @$(MSG) Pre-build native dependencies for parallel build @for depend in $$($(MAKE) dependency-list) ; \ do \ @@ -89,10 +92,7 @@ all-supported: env $(ENV) $(MAKE) -C ../../$$depend 2>&1 | tee --append build-$${depend%/*}-$${depend#*/}.log ; \ [ $${PIPESTATUS[0]} -eq 0 ] || false ; \ fi ; \ - done -ifeq ($(strip $(SUPPORTED_ARCHS)),) - $(MAKE) supported-arch-error -else + done ; \ $(MAKE) $(addprefix supported-arch-,$(SUPPORTED_ARCHS)) endif