summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2018-11-30 18:38:19 +0000
committerrillig <rillig@pkgsrc.org>2018-11-30 18:38:19 +0000
commit218a3d5f646d57643a4a2acd82a9ab89ed6ac203 (patch)
tree56b607d224d0bd3b3ed271a39e7fe1e723ac5d5d /mk/subst.mk
parentf729a38ee3ed2297d167ece70820f68a700435a7 (diff)
downloadpkgsrc-218a3d5f646d57643a4a2acd82a9ab89ed6ac203.tar.gz
mk/misc: make configuration for show-all targets more configurable
Up to now, there was a central list of variable name patterns that defined whether a variable was printed as a sorted list, as a list or as a single value. Now each variable group decides on its own which of the variables are printed in which way, using the usual glob patterns. This is more flexible since different files sometimes differ in their naming conventions. Two variable groups are added: license (for everything related to LICENSE) and go (for lang/go).
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 3d08f7f3d80..cb9a44b2f4e 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.57 2018/10/08 20:35:00 rillig Exp $
+# $NetBSD: subst.mk,v 1.58 2018/11/30 18:38:19 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -63,6 +63,8 @@ _PKG_VARS.subst= SUBST_CLASSES
_PKG_VARS.subst+= ${pv}.${c}
. endfor
.endfor
+_SORTED_VARS.subst= SUBST_CLASSES SUBST_FILES.* SUBST_VARS.*
+_LISTED_VARS.subst= SUBST_SED.* SUBST_FILTER_CMD.*
ECHO_SUBST_MSG?= ${STEP_MSG}