svn commit: r398953 - head/Mk

Bryan Drewery bdrewery at FreeBSD.org
Fri Oct 9 19:20:25 UTC 2015


Author: bdrewery
Date: Fri Oct  9 19:20:24 2015
New Revision: 398953
URL: https://svnweb.freebsd.org/changeset/ports/398953

Log:
  Don't include/parse bsd.options.desc.mk if not needed (showconfig or -V *_DESC).
  
  This is targetting dependency listing overhead.
  
  With hat:	portmgr

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Fri Oct  9 19:09:27 2015	(r398952)
+++ head/Mk/bsd.port.mk	Fri Oct  9 19:20:24 2015	(r398953)
@@ -5293,7 +5293,7 @@ config-conditional:
 .endif
 .endif # config-conditional
 
-.if !target(showconfig)
+.if !target(showconfig) && (make(showconfig) || (!empty(.MAKEFLAGS:M-V) && !empty(.MAKEFLAGS:M*_DESC)))
 .include "${PORTSDIR}/Mk/bsd.options.desc.mk"
 MULTI_EOL=	: you have to choose at least one of them
 SINGLE_EOL=	: you have to select exactly one of them


More information about the svn-ports-all mailing list