summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-09 01:34:50 +0000
committerrillig <rillig@pkgsrc.org>2007-03-09 01:34:50 +0000
commitaa979492e375a22744bac24979618b80578f1ef8 (patch)
treee50631aec9f14f643e2da3f3e9831abf4e38598d /mk/help
parent2ccda09cd0a59802c18edec8ba3ac85b1fa3352a (diff)
downloadpkgsrc-aa979492e375a22744bac24979618b80578f1ef8.tar.gz
The mk/*/*/*.mk files are also interesting.
Don't print the make target definition in the help text.
Diffstat (limited to 'mk/help')
-rw-r--r--mk/help/help.awk10
-rw-r--r--mk/help/help.mk4
2 files changed, 11 insertions, 3 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk
index 41bca22d7a5..4292ef1cb14 100644
--- a/mk/help/help.awk
+++ b/mk/help/help.awk
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.12 2007/02/20 11:45:40 rillig Exp $
+# $NetBSD: help.awk,v 1.13 2007/03/09 01:34:50 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -80,6 +80,14 @@ always {
ignore_next_empty_line = no;
}
+# Don't show the user the definition of make targets, since they are
+# usually not interesting enough. This allows the comments to reach
+# until the line directly above the target definition.
+#
+$1 ~ /:$/ && $2 == ".PHONY" {
+ end_of_topic();
+}
+
(!ignore_this_line) {
lines[nlines++] = $0;
}
diff --git a/mk/help/help.mk b/mk/help/help.mk
index 09bf022b7d3..d3224bae417 100644
--- a/mk/help/help.mk
+++ b/mk/help/help.mk
@@ -1,4 +1,4 @@
-# $NetBSD: help.mk,v 1.6 2007/01/12 07:54:30 rillig Exp $
+# $NetBSD: help.mk,v 1.7 2007/03/09 01:34:50 rillig Exp $
#
# This is the integrated pkgsrc online help system. To query for the
@@ -10,7 +10,7 @@
_PKGSRC_HELP_MK= # defined
_HELP_FILES= Makefile
-_HELP_FILES+= mk/*.mk mk/*/*.mk
+_HELP_FILES+= mk/*.mk mk/*/*.mk mk/*/*/*.mk
_HELP_FILES+= mk/defaults/mk.conf
_HELP_FILES+= lang/perl5/*.mk lang/php/*.mk lang/python/*.mk
_HELP_FILES+= lang/ruby/*.mk