diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:40:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:40:20 +0000 |
commit | 2dba2525fb35dcfc79aad5bdf6c92e790d69635c (patch) | |
tree | ac8ac7d3960922094733bac6d9a5300da7171c56 /doc/rst/meson.build | |
parent | Initial commit. (diff) | |
download | libnvme-2dba2525fb35dcfc79aad5bdf6c92e790d69635c.tar.xz libnvme-2dba2525fb35dcfc79aad5bdf6c92e790d69635c.zip |
Adding upstream version 1.3.upstream/1.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/rst/meson.build')
-rw-r--r-- | doc/rst/meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/rst/meson.build b/doc/rst/meson.build new file mode 100644 index 0000000..ea79115 --- /dev/null +++ b/doc/rst/meson.build @@ -0,0 +1,34 @@ +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('../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('../../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 |