show-valid-targets: Show host targets and also order all of the targets.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-03-30 18:39:41 +00:00
parent 191004d586
commit 506ef4b10b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297427

View File

@ -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