diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:22:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:22:29 +0000 |
commit | 068a45420f2c98887e220b45e946cc7074da550e (patch) | |
tree | c5b54e8b4b235232b057a9c534d9a16d2208463d /doc/rst/meson.build | |
parent | Initial commit. (diff) | |
download | libnvme-068a45420f2c98887e220b45e946cc7074da550e.tar.xz libnvme-068a45420f2c98887e220b45e946cc7074da550e.zip |
Adding upstream version 1.8.upstream/1.8
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | doc/rst/meson.build | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/rst/meson.build b/doc/rst/meson.build new file mode 100644 index 0000000..e54c381 --- /dev/null +++ b/doc/rst/meson.build @@ -0,0 +1,36 @@ +top_source_dir = meson.current_source_dir() + '/../../' + +want_docs = get_option('docs') + +if want_docs != 'false' + want_docs_build = get_option('docs-build') + rstdir = get_option('rstdir') + if want_docs_build + kernel_doc = find_program(top_source_dir + 'scripts/kernel-doc') + + conf = configuration_data() + conf.set('SYSCONFDIR', sysconfdir) + + if want_docs == 'all' or want_docs == 'rst' or want_docs == 'html' + foreach apif : api_files + afile = files(top_source_dir + 'src/nvme/' + apif) + subst = configure_file( + input: afile, + output: '@BASENAME@.subst', + configuration: conf) + rst = custom_target( + apif.underscorify() + '_rst', + input: subst, + output: '@BASENAME@.rst', + capture: true, + command: [kernel_doc, + '-rst', + '@INPUT@'], + install: true, + install_dir: rstdir) + endforeach + endif + else + # no prebuild docs + endif +endif |