[libvirt PATCH 331/351] meson: docs/internals: build html files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 docs/Makefile.am           | 13 -------------
 docs/internals/meson.build | 32 ++++++++++++++++++++++++++++++++
 docs/meson.build           |  1 +
 3 files changed, 33 insertions(+), 13 deletions(-)
 create mode 100644 docs/internals/meson.build

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 9e3479f010e..0e59b00961c 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -55,19 +55,6 @@ logofiles = \
 logofilesdir = $(HTML_DIR)/logos
 logofiles_DATA = $(logofiles)
 
-internals_html_in = \
-  $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/internals/*.html.in))
-internals_rst = \
-  $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/internals/*.rst))
-internals_rst_html_in = \
-  $(internals_rst:%.rst=%.html.in)
-internals_html = \
-  $(internals_html_in:%.html.in=%.html) \
-  $(internals_rst_html_in:%.html.in=%.html)
-
-internalsdir = $(HTML_DIR)/internals
-internals_DATA = $(internals_html)
-
 kbase_html_in = \
   $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.html.in))
 kbase_rst = \
diff --git a/docs/internals/meson.build b/docs/internals/meson.build
new file mode 100644
index 00000000000..944903ae27f
--- /dev/null
+++ b/docs/internals/meson.build
@@ -0,0 +1,32 @@
+internals_in_files = [
+  'command',
+  'eventloop',
+  'locking',
+  'rpc',
+]
+
+foreach name : internals_in_files
+  html_in_file = '@0@xxxxxxxx'.format(name)
+  html_file = '@0@.html'.format(name)
+
+  custom_target(
+    html_file,
+    input: html_in_file,
+    output: html_file,
+    command: [
+      meson_python_prog,
+      meson_html_gen_prog,
+      xsltproc_prog.path(),
+      xmllint_prog.path(),
+      meson.build_root(),
+      docs_timestamp,
+      site_xsl,
+      '@INPUT@',
+      '@OUTPUT@',
+    ],
+    depends: [ aclperms_gen ],
+    depend_files: [ page_xsl ],
+    install: true,
+    install_dir: docs_html_dir / 'internals',
+  )
+endforeach
diff --git a/docs/meson.build b/docs/meson.build
index d6944ad642a..b211a377f59 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -286,6 +286,7 @@ endforeach
 
 subdir('fonts')
 subdir('html')
+subdir('internals')
 
 
 # This hack enables us to view the web pages
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux