summaryrefslogtreecommitdiffstats
path: root/targets
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-30 18:39:41 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-30 18:39:41 +0000
commit818f6ec07b76ee976e4d0612fd2bee38f5638646 (patch)
tree646edc73bc8488ad799513bcb0862a8f06a5e94c /targets
parent3d51f58d4cd0f43c11e08d51ba3bd7b4e3ccc8b1 (diff)
downloadFreeBSD-src-818f6ec07b76ee976e4d0612fd2bee38f5638646.zip
FreeBSD-src-818f6ec07b76ee976e4d0612fd2bee38f5638646.tar.gz
show-valid-targets: Show host targets and also order all of the targets.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'targets')
-rw-r--r--targets/Makefile.xtras13
1 files changed, 11 insertions, 2 deletions
diff --git a/targets/Makefile.xtras b/targets/Makefile.xtras
index 807cb9a..a216f62 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
OpenPOWER on IntegriCloud