summaryrefslogtreecommitdiffstats
path: root/meson_options.txt
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2023-01-31 00:08:42 +0100
committerThomas Heijligen <src@posteo.de>2023-03-01 09:40:52 +0000
commitf4f2f3dd19784efa26fd5619b7a44b4cdf14b04c (patch)
treec9306c071ccd0fbbbdb7a3f37ea5dfcabf8014cb /meson_options.txt
parentfc533e25623af76d0e6ff87681a7c3122df1607e (diff)
downloadflashrom-f4f2f3dd19784efa26fd5619b7a44b4cdf14b04c.tar.gz
flashrom-f4f2f3dd19784efa26fd5619b7a44b4cdf14b04c.tar.bz2
flashrom-f4f2f3dd19784efa26fd5619b7a44b4cdf14b04c.zip
move manpage to sphinx
Use sphinx (sphinx-doc.org) to generate the UNIX man page from an reStructuredText file instead of dealing with plain groff. Use `meson setup -Dman-pages=enabled` to build the man page, and `meson setup -Ddocumentation=enabled` to build the web documentation explicitly. Both are enabled automatically if sphinx-build is found. The man page will be installed as `<meson_mandir>/man8/flashrom.8` and The html documentation in <meson_datadir>/doc/flashrom/html`. The Makefile builds only the man-page format. Increase the minimum version of meson from 0.53.0 to 0.57.0 to be able to pass environment variables to the custom_target() command. That is needed to pass the FLASHROM_VERSION to the documentation. Change-Id: Iee9f1164c5913e47385e6f7d51dc7775a58b5a67 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/72619 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 307b55197..91d304507 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -18,3 +18,5 @@ option('programmer', type : 'array', value : ['auto'], choices : [
'rayer_spi', 'realtek_mst_i2c_spi', 'satamv', 'satasii', 'serprog', 'stlinkv3_spi', 'usbblaster_spi',
], description: 'Active programmers')
option('llvm_cov', type : 'feature', value : 'disabled', description : 'build for llvm code coverage')
+option('man-pages', type : 'feature', value : 'auto', description : 'build the man-page for classic_cli')
+option('documentation', type : 'feature', value : 'auto', description : 'build the html documentation')