summaryrefslogtreecommitdiffstats
path: root/targets
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-30 18:55:58 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-30 18:55:58 +0000
commit131b08123e83fd5be4d4a93e17ca2fc76c970305 (patch)
treebf117c8d7440baccd19ada47377bca9b6ef97fec /targets
parent51ace0913c6a9ba350726c943ada0ff02b21bd77 (diff)
downloadFreeBSD-src-131b08123e83fd5be4d4a93e17ca2fc76c970305.zip
FreeBSD-src-131b08123e83fd5be4d4a93e17ca2fc76c970305.tar.gz
show-valid-targets: Organize all targets by the all_machine_list.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'targets')
-rw-r--r--targets/Makefile.xtras22
1 files changed, 13 insertions, 9 deletions
diff --git a/targets/Makefile.xtras b/targets/Makefile.xtras
index a216f62..4372f5a 100644
--- a/targets/Makefile.xtras
+++ b/targets/Makefile.xtras
@@ -33,23 +33,27 @@ OTHER_TARGETS = \
destroy-host \
destroy-stage \
-BUILD_TARGETS != cd ${_here} && \
+BUILD_TARGETS_${MACHINE:tu} != 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 \) | \
+.for _machine in ${all_machine_list}
+_targets_${_machine} != cd ${_here} && \
+ find . \( -name Makefile.depend.${_machine} -o \
+ -name ${.MAKE.DEPENDFILE:T}.${_machine} \) | \
sed 's,/Makefile.*,,;s,^./,,' | sort -u
+BUILD_TARGETS_${_machine:tu} += ${_targets_${_machine}}
+.endfor
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}"
+.for _machine in ${all_machine_list:O}
+.if !empty(BUILD_TARGETS_${_machine:tu})
+ @echo "Build targets for ${_machine} (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):"
+ @echo "${BUILD_TARGETS_${_machine:tu}:O:ts\n}"
@echo
.endif
- @echo "Build targets for ${MACHINE} (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):"
- @echo "${BUILD_TARGETS:O:ts\n}"
- @echo; echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}"
+.endfor
+ @echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}"
.endif
help: show-help
OpenPOWER on IntegriCloud