From owner-svn-src-head@freebsd.org Thu May 26 23:20:31 2016 Return-Path: Delivered-To: svn-src-head@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 EA5F9B48241; Thu, 26 May 2016 23:20:31 +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 73E8719A3; Thu, 26 May 2016 23:20:31 +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 u4QNKU9n070302; Thu, 26 May 2016 23:20:30 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4QNKUXV070301; Thu, 26 May 2016 23:20:30 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201605262320.u4QNKUXV070301@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Thu, 26 May 2016 23:20:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300804 - head/share/mk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 23:20:32 -0000 Author: bdrewery Date: Thu May 26 23:20:30 2016 New Revision: 300804 URL: https://svnweb.freebsd.org/changeset/base/300804 Log: Avoid redundant 'make objs' tree-walk when building the main prog. The main prog has a dependency on the submake targets to ensure they are built. From bsd.crunchgen.mk though we already have our own dependency on 'make objs' so there is no need for another one. Crunchgen(1) is doing the right thing here so it is not modified. This also prevents the CC fix tainting the submake environment with META_MODE and causing rebuilds. The CC passed is is only intended for the main prog itself. Sponsored by: EMC / Isilon Storage Division Modified: head/share/mk/bsd.crunchgen.mk Modified: head/share/mk/bsd.crunchgen.mk ============================================================================== --- head/share/mk/bsd.crunchgen.mk Thu May 26 23:20:27 2016 (r300803) +++ head/share/mk/bsd.crunchgen.mk Thu May 26 23:20:30 2016 (r300804) @@ -110,6 +110,9 @@ ${OUTPUTS:[1]}: .META ${OUTPUTS}: ${CONF} MAKE=${MAKE} ${CRUNCHENV} MAKEOBJDIRPREFIX=${CRUNCHOBJS} \ ${CRUNCHGEN} -fq -m ${OUTMK} -c ${OUTC} ${CONF} + # Avoid redundantly calling 'make objs' which we've done by our + # own dependencies. + sed -i '' -e "s/^\(${PROG}:.*\) \$$(SUBMAKE_TARGETS)/\1/" ${OUTMK} # These 2 targets cannot use .MAKE since they depend on the generated # ${OUTMK} above.