summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-05 19:48:27 +0000
committerrillig <rillig@pkgsrc.org>2008-01-05 19:48:27 +0000
commitcf4165832cd91fce591d0a1f0d0d251d88daba4c (patch)
tree6c5d257d604382289e65a5dd902a0d9f19db217f /mk
parentcacab0c7203d16e1040626895a51207177fced99 (diff)
downloadpkgsrc-cf4165832cd91fce591d0a1f0d0d251d88daba4c.tar.gz
Upper-case keywords may also end with a colon. This is used in
mk/check/check-portability.mk.
Diffstat (limited to 'mk')
-rw-r--r--mk/help/help.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk
index a953d111eaa..1c7510df694 100644
--- a/mk/help/help.awk
+++ b/mk/help/help.awk
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.20 2008/01/05 17:55:48 rillig Exp $
+# $NetBSD: help.awk,v 1.21 2008/01/05 19:48:27 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -136,7 +136,7 @@ NF >= 1 && !/^[\t.]/ && !/^#*$/ {
# Automatic keywords must be either upper- or lower-case.
# Lower-case keywords (make targets) must end with a colon.
- } else if (w !~ /^[A-Za-z].*[0-9A-Za-z]$/) {
+ } else if (w !~ /^[A-Za-z].*[0-9A-Za-z]:?$/) {
# Keywords must start with a letter and end with a letter
# or digit.