diff --git a/targets/Makefile.xtras b/targets/Makefile.xtras index 807cb9a71180..a216f626d6f3 100644 --- a/targets/Makefile.xtras +++ b/targets/Makefile.xtras @@ -37,10 +37,19 @@ BUILD_TARGETS != cd ${_here} && \ find . \( -name Makefile.depend -o -name ${.MAKE.DEPENDFILE:T} \) | \ sed 's,/Makefile.*,,;s,^./,,' | sort -u +BUILD_TARGETS_HOST != cd ${_here} && \ + find . \( -name Makefile.depend.host -o -name ${.MAKE.DEPENDFILE:T}.host \) | \ + sed 's,/Makefile.*,,;s,^./,,' | sort -u + show-valid-targets: +.if !empty(BUILD_TARGETS_HOST) + @echo "Build targets for host (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):" + @echo "${BUILD_TARGETS_HOST:O:ts\n}" + @echo +.endif @echo "Build targets for ${MACHINE} (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):" - @echo "${BUILD_TARGETS:ts\n}" - @echo; echo "Other targets:"; echo "${OTHER_TARGETS:ts\n}" + @echo "${BUILD_TARGETS:O:ts\n}" + @echo; echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}" .endif help: show-help