3 # Makefile.xtras - non-build targets
5 # Resist the urge to fill this with miscellaneous junk
7 # We are not building here (shouldn't be), so no meta mode.
15 @echo "ERROR: there is no supported default target."; \
19 .if make(show-valid-targets)
23 BUILD_TARGETS != cd ${_here} && \
24 find . \( -name Makefile.depend -o -name ${.MAKE.DEPENDFILE:T} \) | \
25 sed 's,/Makefile.*,,;s,^./,,' | sort -u
28 @echo "Build targets for ${MACHINE}:"; echo "${BUILD_TARGETS:ts\n}"
29 @echo; echo "Other targets:"; echo "${OTHER_TARGETS:ts\n}"
35 echo "You can see the targets which are valid for a given machine"; \
36 echo "by running 'mk --machine <machine> show-valid-targets'"; \
37 echo "For other information, read: ${HELP_DOCS:@d@${.newline}$d@}"; \
41 @echo "ERROR: '${_TARGETS}' is not a valid target for ${MACHINE}."
44 .for t in ${_TARGETS:Nlove}
46 $t: not-valid-target show-help