(help2man.info.gz) Makefile usage
Info Catalog
(help2man.info.gz) --help recommendations
(help2man.info.gz) Top
(help2man.info.gz) Localised man pages
5 Using `help2man' With `make'
******************************
A suggested use of `help2man' in Makefiles is to have the manual page
depend not on the binary, but on the source file(s) in which the
`--help' and `--version' output are defined.
This usage allows a manual page to be generated by the maintainer and
included in the distribution without requiring the end-user to have
`help2man' installed.
An example rule for the program `prog' could be:
prog.1: $(srcdir)/main.c
-$(HELP2MAN) --output=$@ --name='an example program' ./prog
The value of `HELP2MAN' may be set in `configure.in' using either of:
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
for `automake', or something like:
AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
for `autoconf' alone.
Info Catalog
(help2man.info.gz) --help recommendations
(help2man.info.gz) Top
(help2man.info.gz) Localised man pages
automatically generated byinfo2html