]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Copy include adoc files to build dir
authorDaniel Wagner <dwagner@suse.de>
Tue, 15 Mar 2022 18:08:25 +0000 (19:08 +0100)
committerDaniel Wagner <dwagner@suse.de>
Tue, 15 Mar 2022 18:08:25 +0000 (19:08 +0100)
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>
Documentation/meson.build

index 4d729814b44b210efd08d7cc48d16a513bdb631e..cf19ba7c49de20fb869662f8441611d0b33e777e 100644 (file)
@@ -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)