show-valid-targets: Organize all targets by the all_machine_list.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
b9e557296b
commit
700cb7f9eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297430
@ -33,23 +33,27 @@ OTHER_TARGETS = \
|
|||||||
destroy-host \
|
destroy-host \
|
||||||
destroy-stage \
|
destroy-stage \
|
||||||
|
|
||||||
BUILD_TARGETS != cd ${_here} && \
|
BUILD_TARGETS_${MACHINE:tu} != cd ${_here} && \
|
||||||
find . \( -name Makefile.depend -o -name ${.MAKE.DEPENDFILE:T} \) | \
|
find . \( -name Makefile.depend -o -name ${.MAKE.DEPENDFILE:T} \) | \
|
||||||
sed 's,/Makefile.*,,;s,^./,,' | sort -u
|
sed 's,/Makefile.*,,;s,^./,,' | sort -u
|
||||||
|
|
||||||
BUILD_TARGETS_HOST != cd ${_here} && \
|
.for _machine in ${all_machine_list}
|
||||||
find . \( -name Makefile.depend.host -o -name ${.MAKE.DEPENDFILE:T}.host \) | \
|
_targets_${_machine} != cd ${_here} && \
|
||||||
|
find . \( -name Makefile.depend.${_machine} -o \
|
||||||
|
-name ${.MAKE.DEPENDFILE:T}.${_machine} \) | \
|
||||||
sed 's,/Makefile.*,,;s,^./,,' | sort -u
|
sed 's,/Makefile.*,,;s,^./,,' | sort -u
|
||||||
|
BUILD_TARGETS_${_machine:tu} += ${_targets_${_machine}}
|
||||||
|
.endfor
|
||||||
|
|
||||||
show-valid-targets:
|
show-valid-targets:
|
||||||
.if !empty(BUILD_TARGETS_HOST)
|
.for _machine in ${all_machine_list:O}
|
||||||
@echo "Build targets for host (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):"
|
.if !empty(BUILD_TARGETS_${_machine:tu})
|
||||||
@echo "${BUILD_TARGETS_HOST:O:ts\n}"
|
@echo "Build targets for ${_machine} (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):"
|
||||||
|
@echo "${BUILD_TARGETS_${_machine:tu}:O:ts\n}"
|
||||||
@echo
|
@echo
|
||||||
.endif
|
.endif
|
||||||
@echo "Build targets for ${MACHINE} (leave out the ${target_dirs:S,${_here:T},,:S,^/,,:S,$,/,}):"
|
.endfor
|
||||||
@echo "${BUILD_TARGETS:O:ts\n}"
|
@echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}"
|
||||||
@echo; echo "Other targets:"; echo "${OTHER_TARGETS:O:ts\n}"
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
help: show-help
|
help: show-help
|
||||||
|
Loading…
Reference in New Issue
Block a user