From owner-svn-src-all@freebsd.org Wed Mar 30 18:55:59 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1079AE3D35; Wed, 30 Mar 2016 18:55:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C4C018A8; Wed, 30 Mar 2016 18:55:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2UItwOv060714; Wed, 30 Mar 2016 18:55:58 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2UItwRF060713; Wed, 30 Mar 2016 18:55:58 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201603301855.u2UItwRF060713@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Wed, 30 Mar 2016 18:55:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297430 - head/targets X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 18:55:59 -0000 Author: bdrewery Date: Wed Mar 30 18:55:58 2016 New Revision: 297430 URL: https://svnweb.freebsd.org/changeset/base/297430 Log: show-valid-targets: Organize all targets by the all_machine_list. Sponsored by: EMC / Isilon Storage Division Modified: head/targets/Makefile.xtras Modified: head/targets/Makefile.xtras ============================================================================== --- head/targets/Makefile.xtras Wed Mar 30 18:45:18 2016 (r297429) +++ head/targets/Makefile.xtras Wed Mar 30 18:55:58 2016 (r297430) @@ -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