aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-10 03:20:24 +0800
committerbdrewery <bdrewery@FreeBSD.org>2015-10-10 03:20:24 +0800
commitc11c748a07fbdfde2bd0bce8e0614d1e8440cca5 (patch)
tree7e0d4882aaa62f6d03b2087fff353d8b20d23c1b /Mk
parente091663287fba2530cb4cd380aa5abefdadfbb9f (diff)
downloadfreebsd-ports-gnome-c11c748a07fbdfde2bd0bce8e0614d1e8440cca5.tar.gz
freebsd-ports-gnome-c11c748a07fbdfde2bd0bce8e0614d1e8440cca5.tar.zst
freebsd-ports-gnome-c11c748a07fbdfde2bd0bce8e0614d1e8440cca5.zip
Don't include/parse bsd.options.desc.mk if not needed (showconfig or -V *_DESC).
This is targetting dependency listing overhead. With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index cf390402f56f..70a1ac0eb26f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -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