Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
docs/Makefile.am | 2 -
docs/meson.build | 104 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+), 2 deletions(-)
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 0c42db2badb..4e69f9ae7fa 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -281,8 +281,6 @@ manpages_DATA = $(manpages_html)
dot_html_generated_in = \
hvsupport.html.in \
$(NULL)
-dot_html_in = \
- $(notdir $(wildcard $(srcdir)/*.html.in))
dot_rst = \
$(notdir $(wildcard $(srcdir)/*.rst))
dot_rst_html_in = \
diff --git a/docs/meson.build b/docs/meson.build
index fa6b1f940fe..36fd2388b69 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -27,6 +27,84 @@ docs_assets = [
'node.gif',
]
+docs_html_in_files = [
+ '404',
+ 'acl',
+ 'aclpolkit',
+ 'api_extension',
+ 'api',
+ 'apps',
+ 'architecture',
+ 'auditlog',
+ 'auth',
+ 'bindings',
+ 'bugs',
+ 'cgroups',
+ 'compiling',
+ 'contact',
+ 'contribute',
+ 'csharp',
+ 'dbus',
+ 'devguide',
+ 'docs',
+ 'downloads',
+ 'drivers',
+ 'drvbhyve',
+ 'drvesx',
+ 'drvhyperv',
+ 'drvlxc',
+ 'drvnodedev',
+ 'drvopenvz',
+ 'drvqemu',
+ 'drvremote',
+ 'drvsecret',
+ 'drvtest',
+ 'drvvbox',
+ 'drvvirtuozzo',
+ 'drvvmware',
+ 'drvxen',
+ 'errors',
+ 'firewall',
+ 'formatcaps',
+ 'formatdomaincaps',
+ 'formatdomain',
+ 'format',
+ 'formatnetwork',
+ 'formatnetworkport',
+ 'formatnode',
+ 'formatnwfilter',
+ 'formatsecret',
+ 'formatsnapshot',
+ 'formatstoragecaps',
+ 'formatstorageencryption',
+ 'formatstorage',
+ 'goals',
+ 'governance',
+ 'hooks',
+ 'index',
+ 'internals',
+ 'java',
+ 'kbase',
+ 'logging',
+ 'migration',
+ 'nss',
+ 'pci-hotplug',
+ 'php',
+ 'python',
+ 'remote',
+ 'securityprocess',
+ 'storage',
+ 'strategy',
+ 'support',
+ 'testapi',
+ 'testsuites',
+ 'testtck',
+ 'tlscerts',
+ 'uri',
+ 'virshcmdref',
+ 'windows',
+]
+
install_data(docs_assets, install_dir: docs_html_dir)
aclperms_gen = custom_target(
@@ -84,3 +162,29 @@ docs_rst2html_gen = generator(
arguments: [ '--strict', '@INPUT@' ],
capture: true,
)
+
+foreach name : docs_html_in_files
+ html_in_file = '@0@.html.in'.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,
+ )
+endforeach
--
2.26.2