Fix regression from r304644 which could cause .WAITs in SUBDIR to be ignored.

This was possible if a STANDALONE_SUBDIR_TARGET item came in
SUBDIR_TARGETS before 'all', which would then cause SUBDIR to
have all .WAIT's removed.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
bdrewery 2016-09-09 18:49:45 +00:00
parent d9309587b3
commit 2f63fc0d8e

View File

@ -141,12 +141,13 @@ ${__dir}: all_subdir_${DIRPRFX}${__dir} .PHONY
# Can ordering be skipped for this and SUBDIR_PARALLEL forced?
.if ${STANDALONE_SUBDIR_TARGETS:M${__target}}
_is_standalone_target= 1
SUBDIR:= ${SUBDIR:N.WAIT}
_subdir_filter= N.WAIT
.else
_is_standalone_target= 0
_subdir_filter=
.endif
__subdir_targets=
.for __dir in ${SUBDIR}
.for __dir in ${SUBDIR:${_subdir_filter}}
.if ${__dir} == .WAIT
__subdir_targets+= .WAIT
.else