summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2008-02-19 22:25:23 +0000
committerrillig <rillig>2008-02-19 22:25:23 +0000
commitbc6836497295d561923bf23d9ec185da577d628c (patch)
tree19219fd75130eaab6b1b0d5bba081a28fffb220f /mk
parent43636b96529f4d1491f3e0aac931895c1e99260d (diff)
downloadpkgsrc-bc6836497295d561923bf23d9ec185da577d628c.tar.gz
Documented the pkgsrc online help.
Diffstat (limited to 'mk')
-rw-r--r--mk/help/help.help35
1 files changed, 35 insertions, 0 deletions
diff --git a/mk/help/help.help b/mk/help/help.help
new file mode 100644
index 00000000000..28a25ffaca1
--- /dev/null
+++ b/mk/help/help.help
@@ -0,0 +1,35 @@
+# $NetBSD: help.help,v 1.1 2008/02/19 22:25:23 rillig Exp $
+#
+# The reference documentation of pkgsrc contains mostly of comments in
+# various files. To save users and developers from knowing where to find
+# what, this online help provides a convenient way to query the
+# documentation for keywords.
+#
+# === Using the online help ===
+#
+# The online help is called like "bmake help topic=<topic>", where
+# <topic> may be a variable name (like SUBST_VARS), a make target (like
+# pre-configure), or some other keyword (like mount, lvalue).
+#
+# === Making the documentation accessible to the online help ===
+#
+# The online help searches all files called *.mk or *.help in the mk/
+# directory and some others. It looks at the comments (like this one) to
+# find keywords. The most obvious way to declare keywords is in a line
+# that starts with "# Keywords:". Since it would be annoying to declare
+# all these keywords explicitly, some keywords are extracted
+# automatically, if they have one of the following forms:
+#
+# * A default definition of a variable, for example "PAPERSIZE?= a4".
+# This occurs often in mk/defaults/mk.conf.
+#
+# * An overriding definition of a variable.
+#
+# * A variable definition that is commented out, without any white-space
+# between the comment character (#) and the variable name.
+#
+# * A make target, either commented out or not. It may not have any
+# upper-case letters and must end with a colon.
+#
+# Keywords: help
+#