summaryrefslogtreecommitdiffstats
path: root/targets/Makefile.xtras
diff options
context:
space:
mode:
Diffstat (limited to 'targets/Makefile.xtras')
-rw-r--r--targets/Makefile.xtras21
1 files changed, 17 insertions, 4 deletions
diff --git a/targets/Makefile.xtras b/targets/Makefile.xtras
index 807cb9a..124bddc 100644
--- a/targets/Makefile.xtras
+++ b/targets/Makefile.xtras
@@ -33,14 +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
+.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:
- @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}"
+.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 -e "${BUILD_TARGETS_${_machine:tu}:O:ts\n}" | sed -e 's,^, ,'
+ @echo
+.endif
+.endfor
+ @echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}" | sed -e 's,^, ,'
.endif
help: show-help
OpenPOWER on IntegriCloud