From: Daniel Wagner Date: Tue, 15 Mar 2022 18:08:25 +0000 (+0100) Subject: build: Copy include adoc files to build dir X-Git-Tag: v2.0-rc7~14^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eba9ffdbcea24e83389516603318290b500948c4;p=users%2Fsagi%2Fnvme-cli.git build: Copy include adoc files to build dir 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 --- diff --git a/Documentation/meson.build b/Documentation/meson.build index 4d729814..cf19ba7c 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -150,6 +150,11 @@ adoc_sources = [ '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' @@ -160,6 +165,13 @@ 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)