From owner-svn-src-all@freebsd.org Fri Jun 3 21:35:20 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 809E1B6927E; Fri, 3 Jun 2016 21:35:20 +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 52D021739; Fri, 3 Jun 2016 21:35:20 +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 u53LZJZX012516; Fri, 3 Jun 2016 21:35:19 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u53LZJLI012515; Fri, 3 Jun 2016 21:35:19 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201606032135.u53LZJLI012515@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 3 Jun 2016 21:35:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301290 - 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-all@freebsd.org X-Mailman-Version: 2.1.22 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: Fri, 03 Jun 2016 21:35:20 -0000 Author: bdrewery Date: Fri Jun 3 21:35:19 2016 New Revision: 301290 URL: https://svnweb.freebsd.org/changeset/base/301290 Log: WITH_META_MODE: Avoid "building" .depend if there is nothing to do. This avoids 'Building /path/.depend' when it will not actually produce a file. Sponsored by: EMC / Isilon Storage Division Modified: head/share/mk/bsd.dep.mk Modified: head/share/mk/bsd.dep.mk ============================================================================== --- head/share/mk/bsd.dep.mk Fri Jun 3 21:23:11 2016 (r301289) +++ head/share/mk/bsd.dep.mk Fri Jun 3 21:35:19 2016 (r301290) @@ -246,7 +246,9 @@ DPSRCS+= ${SRCS} # beforedepend/_EXTRADEPEND/afterdepend. The target is kept # to allow 'make depend' to generate files. ${DEPENDFILE}: ${DPSRCS} -.if !empty(.MAKE.MODE:Mmeta) || exists(${.OBJDIR}/${DEPENDFILE}) +.if exists(${.OBJDIR}/${DEPENDFILE}) || \ + ((commands(beforedepend) || commands(_EXTRADEPEND) || \ + commands(afterdepend)) && !empty(.MAKE.MODE:Mmeta)) rm -f ${DEPENDFILE} .endif .if target(_EXTRADEPEND)