summaryrefslogtreecommitdiff
path: root/mk/tools/bsd.tools.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/tools/bsd.tools.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/tools/bsd.tools.mk')
-rw-r--r--mk/tools/bsd.tools.mk24
1 files changed, 23 insertions, 1 deletions
diff --git a/mk/tools/bsd.tools.mk b/mk/tools/bsd.tools.mk
index 8fc9515933b..2adb854c9dc 100644
--- a/mk/tools/bsd.tools.mk
+++ b/mk/tools/bsd.tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.46 2006/12/15 12:46:24 martti Exp $
+# $NetBSD: bsd.tools.mk,v 1.47 2007/03/15 22:54:25 rillig Exp $
#
# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -162,3 +162,25 @@ post-tools:
.include "${PKGSRCDIR}/mk/tools/make.mk"
.include "${PKGSRCDIR}/mk/tools/create.mk"
+
+_VARGROUPS+= tools
+_USER_VARS.tools= TOOLS_SHELL
+_PKG_VARS.tools= USE_TOOLS TOOLS_BROKEN TOOLS_CREATE \
+ TOOLS_FAIL TOOLS_GNU_MISSING TOOLS_NOOP
+.for t in ${USE_TOOLS:C/:.*//} # XXX: There should be a variable _ALL_TOOLS
+. for pv in \
+ TOOLS_ALIASES \
+ TOOLS_ARGS \
+ TOOLS_CMD \
+ TOOLS_DEPENDS \
+ TOOLS_IGNORE \
+ TOOLS_PATH \
+ TOOLS_PLATFORM \
+ TOOLS_PREFIX \
+ TOOLS_SCRIPT \
+ TOOLS_SCRIPT_DFLT \
+ TOOLS_VALUE_GNU \
+ # nil
+_SYS_VARS.tools+= ${pv}.${t}
+. endfor
+.endfor