asciidoctor wants all file to live under one common directory root,
thus we can't provide a search path for the include files. Copy
include files to the build dir.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
'nvme-zns-zone-mgmt-send',
]
+adoc_includes = [
+ 'cmd-plugins.txt',
+ 'cmds-main.txt',
+]
+
want_docs = get_option('docs')
want_docs_build = get_option('docs-build')
if want_docs != 'false'
if want_docs_build and asciidoctor.found()
# Build documentation before installing
+ foreach file : adoc_includes
+ configure_file(
+ input: file,
+ output: file,
+ copy: true)
+ endforeach
+
# man pages
if want_docs == 'all' or want_docs == 'man'
xmlto = find_program('xmlto', required: false)