pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/help The mk/*/*/*.mk files are also interesting.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03a21a60910a
branches:  trunk
changeset: 526400:03a21a60910a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Mar 09 01:34:50 2007 +0000

description:
The mk/*/*/*.mk files are also interesting.

Don't print the make target definition in the help text.

diffstat:

 mk/help/help.awk |  10 +++++++++-
 mk/help/help.mk  |   4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 9f66fe6dac63 -r 03a21a60910a mk/help/help.awk
--- a/mk/help/help.awk  Fri Mar 09 01:29:11 2007 +0000
+++ b/mk/help/help.awk  Fri Mar 09 01:34:50 2007 +0000
@@ -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 @@
        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 -r 9f66fe6dac63 -r 03a21a60910a mk/help/help.mk
--- a/mk/help/help.mk   Fri Mar 09 01:29:11 2007 +0000
+++ b/mk/help/help.mk   Fri Mar 09 01:34:50 2007 +0000
@@ -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



Home | Main Index | Thread Index | Old Index