doc/man/Makefile: Mimic mandb(5) path hierarchy
authorOlivier Dion <odion@efficios.com>
Mon, 2 Oct 2023 16:01:29 +0000 (12:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 2 Oct 2023 18:08:51 +0000 (14:08 -0400)
commit46d51dbdc8b9c93871c34416006cf7f28b987c90
treede071ac6145838de2bbd90924474a275a008c93a
parentad3629161b520be21f977ac7902bb2c032d55612
doc/man/Makefile: Mimic mandb(5) path hierarchy

The following allows developers to read locally generated man pages by
using the `pre-inst-env' script. For example:

  $ ./pre-inst-env man lttng-add-context

will open the `lttng-add-context.1' man pages in the build directory
under which the `pre-inst-env' was generated.

This is done by:

  1. Simlinking `build/doc/man{1,3,7,8}' to `build/doc/man'

  2. Adding MANPATH to `pre-inst-env'

The symlinking part is a hack to force `man' to use our current doc
layout, doing a less invasive change than would be required otherwise

Change-Id: I2ea1af779f237fe1808a1d44d4f3b1c3a8535e2d
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
doc/man/Makefile.am
pre-inst-env.in
This page took 0.02539 seconds and 4 git commands to generate.