diff options
author | Warner Losh <imp@FreeBSD.org> | 2011-01-07 20:36:27 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2011-01-07 20:36:27 +0000 |
commit | 64fe77a52b2faf30c43ff3b00a5e7a26e677dc9b (patch) | |
tree | a87f346aa0eb1a89cc06a2f511579fb76f3dbdca /Makefile | |
parent | cd2ae2532f3ad33a227fb09aae248620260a1635 (diff) | |
download | src-test-64fe77a52b2faf30c43ff3b00a5e7a26e677dc9b.tar.gz src-test-64fe77a52b2faf30c43ff3b00a5e7a26e677dc9b.zip |
make targets
This produces a list of currently supported targets. Here "supported"
means "built in make universe" on the theory that those targets are
more supported than any that might work in 'make buildworld TARGET=x
TARGET_ARCH=y' since the latter are less tested.
Suggested by: rwatson
Notes
Notes:
svn path=/head/; revision=217125
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 5f16914731c96..a674c90cf0218 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ # delete-old-dirs - Delete obsolete directories. # delete-old-files - Delete obsolete files. # delete-old-libs - Delete obsolete libraries. +# targets - Print a list of supported TARGET/TARGET_ARCH pairs. # # This makefile is simple by design. The FreeBSD make automatically reads # the /usr/share/mk/sys.mk unless the -m argument is specified on the @@ -280,7 +281,7 @@ tinderbox: # with a reasonable chance of success, regardless of how old your # existing system is. # -.if make(universe) || make(universe_kernels) || make(tinderbox) +.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets) TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v TARGET_ARCHES_arm?= arm armeb TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb @@ -291,6 +292,14 @@ TARGET_ARCHES_sun4v?= sparc64 TARGET_ARCHES_${target}?= ${target} .endfor +targets: + @echo "Supported TARGET/TARGET_ARCH pairs" +.for target in ${TARGETS} +.for target_arch in ${TARGET_ARCHES_${target}} + @echo " ${target}/${target_arch}" +.endfor +.endfor + .if defined(DOING_TINDERBOX) FAILFILE=tinderbox.failed MAKEFAIL=tee -a ${FAILFILE} |