From a1492052d624be07fd8b641da4e9d2c250be8635 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Thu, 18 Jun 2020 02:29:29 +0200 Subject: [PATCH] meson: docs/internals: build html files Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- docs/Makefile.am | 13 ------------- docs/internals/meson.build | 34 ++++++++++++++++++++++++++++++++++ docs/meson.build | 1 + 3 files changed, 35 insertions(+), 13 deletions(-) create mode 100644 docs/internals/meson.build diff --git a/docs/Makefile.am b/docs/Makefile.am index 9e3479f010..0e59b00961 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 0000000000..2d6fa42ee9 --- /dev/null +++ b/docs/internals/meson.build @@ -0,0 +1,34 @@ +internals_in_files = [ + 'command', + 'eventloop', + 'locking', + 'rpc', +] + +foreach name : internals_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, + python3_prog.path(), + meson_html_gen_prog.path(), + xsltproc_prog.path(), + xmllint_prog.path(), + meson.build_root(), + docs_timestamp, + subsite_xsl, + '@INPUT@', + '@OUTPUT@', + 'internals' / html_in_file, + ], + 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 d9cb845a8f..17f491a5b7 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -293,6 +293,7 @@ endforeach subdir('fonts') subdir('html') +subdir('internals') # This hack enables us to view the web pages -- 2.47.2