diff options
author | rillig <rillig> | 2006-10-01 14:52:32 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-10-01 14:52:32 +0000 |
commit | 3f230518a1de8eaa6a733830f9de1342210ccfa6 (patch) | |
tree | 80d3dc35146fea6f864e0d9ecc944aa7fb6477db /mk | |
parent | b3fd7e86743d892eb80c9888b4b57c8bdc4d20ad (diff) | |
download | pkgsrc-3f230518a1de8eaa6a733830f9de1342210ccfa6.tar.gz |
All the files in mk/ are searched for helping information.
Variable help texts may also start with the variable name, followed by a
colon.
The help message is more detailed.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.help.mk | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/mk/bsd.pkg.help.mk b/mk/bsd.pkg.help.mk index 7761fb11450..5f51305a23f 100644 --- a/mk/bsd.pkg.help.mk +++ b/mk/bsd.pkg.help.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.help.mk,v 1.4 2006/08/04 07:34:25 rillig Exp $ +# $NetBSD: bsd.pkg.help.mk,v 1.5 2006/10/01 14:52:32 rillig Exp $ # # This is the integrated pkgsrc online help system. To query for the @@ -10,10 +10,7 @@ _PKGSRC_HELP_MK= # defined _HELP_FILES= # empty -_HELP_FILES+= mk/defaults/mk.conf -_HELP_FILES+= mk/bsd.prefs.mk -_HELP_FILES+= mk/bsd.pkg.mk -_HELP_FILES+= mk/bsd.options.mk +_HELP_FILES+= mk/*.mk _HELP_FILES+= mk/*/*.mk _HELP_AWK= \ @@ -38,7 +35,8 @@ _HELP_AWK= \ } \ } \ ($$1 == VARNAME"?=") || ($$1 == "\#"VARNAME"=") \ - || ($$1 == "\#" && $$2 == VARNAME && last_line_was_empty) { \ + || ($$1 == "\#" && last_line_was_empty && \ + ($$2 == VARNAME || $$2 == VARNAME":")) { \ var = 1; \ } \ /^\#/ { \ @@ -77,7 +75,11 @@ TOPIC= ${topic} .PHONY: help help: .if !defined(TOPIC) - @${ECHO} "usage: "${MAKE:Q}" help TOPIC=<VARNAME>" 1>&2 + @${PRINTF} "usage: %s help topic=<topic>\\n" ${MAKE:Q} + @${PRINTF} "\\n" + @${PRINTF} "\\t<topic> may be a variable name or a make target,\\n" + @${PRINTF} "\\tfor example CONFIGURE_DIRS or patch.\\n" + @${PRINTF} "\\n" .else ${_PKG_SILENT}${_PKG_DEBUG} set -e; \ cd ${PKGSRCDIR}; \ |