summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-15 22:54:24 +0000
committerrillig <rillig@pkgsrc.org>2007-03-15 22:54:24 +0000
commit66bf916302435dd3df36b637e4610b03504253fd (patch)
tree2a6ccf38a6091b29f21c0fce92183621b136e1f9 /mk/subst.mk
parent154c3bb52d5bf34d78ba393838963353ab6e8e6d (diff)
downloadpkgsrc-66bf916302435dd3df36b637e4610b03504253fd.tar.gz
For all those who are interested in the inner workings of pkgsrc, there
is a new target "show-all" that fits to the existing "debug", "show-tools", "show-vars" targets. It prints a list of the variables that make up the public interface to pkgsrc. Running this target is especially useful if you want to do some things, you know that they must have been implemented but you don't know what it is called. It also shows the "class" of a variable (user-defined, package-defined, system-defined).
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 24c06e99a6c..5d2660d3b3f 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.44 2007/03/07 21:27:59 rillig Exp $
+# $NetBSD: subst.mk,v 1.45 2007/03/15 22:54:24 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -49,6 +49,15 @@
# Keywords: subst
#
+_VARGROUPS+= subst
+_PKG_VARS.subst= SUBST_CLASSES
+.for c in ${SUBST_CLASSES}
+. for pv in SUBST_STAGE SUBST_MESSAGE SUBST_FILES SUBST_SED SUBST_VARS \
+ SUBST_FILTER_CMD SUBST_POSTCMD SUBST_SKIP_TEXT_CHECK
+_PKG_VARS.subst+= ${pv}.${c}
+. endfor
+.endfor
+
ECHO_SUBST_MSG?= ${STEP_MSG}
# _SUBST_IS_TEXT_FILE returns 0 if $${file} is a text file.