Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
docs/Makefile.am | 13 -------------
docs/kbase/meson.build | 41 +++++++++++++++++++++++++++++++++++++++++
docs/meson.build | 1 +
3 files changed, 42 insertions(+), 13 deletions(-)
create mode 100644 docs/kbase/meson.build
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 6b2ee2747e2..a25fe49b6b7 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -48,19 +48,6 @@ logofiles = \
logofilesdir = $(HTML_DIR)/logos
logofiles_DATA = $(logofiles)
-kbase_html_in = \
- $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.html.in))
-kbase_rst = \
- $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.rst))
-kbase_rst_html_in = \
- $(kbase_rst:%.rst=%.html.in)
-kbase_html = \
- $(kbase_html_in:%.html.in=%.html) \
- $(kbase_rst_html_in:%.html.in=%.html)
-
-kbasedir = $(HTML_DIR)/kbase
-kbase_DATA = $(kbase_html)
-
# Sync with src/util/
KEYCODES = linux osx atset1 atset2 atset3 xtkbd usb win32 qnum
KEYNAMES = linux osx win32
diff --git a/docs/kbase/meson.build b/docs/kbase/meson.build
new file mode 100644
index 00000000000..6a17d674436
--- /dev/null
+++ b/docs/kbase/meson.build
@@ -0,0 +1,41 @@
+docs_kbase_files = [
+ 'backing_chains',
+ 'domainstatecapture',
+ 'launch_security_sev',
+ 'locking-lockd',
+ 'locking',
+ 'locking-sanlock',
+ 'migrationinternals',
+ 'qemu-passthrough-security',
+ 'rpm-deployment',
+ 'secureusage',
+ 'virtiofs',
+]
+
+foreach name : docs_kbase_files
+ rst_file = '@0@.rst'.format(name)
+ html_file = '@0@.html'.format(name)
+
+ html_in = docs_rst2html_gen.process(rst_file)
+
+ custom_target(
+ html_file,
+ input: html_in,
+ 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 / 'kbase',
+ )
+endforeach
diff --git a/docs/meson.build b/docs/meson.build
index bbd6faaa786..069778ce890 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -288,6 +288,7 @@ subdir('fonts')
subdir('html')
subdir('internals')
subdir('js')
+subdir('kbase')
# This hack enables us to view the web pages
--
2.26.2