]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: meson.build: Limit html files depending on 'aclperms.htmlinc'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Oct 2020 09:32:59 +0000 (11:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Oct 2020 10:40:50 +0000 (12:40 +0200)
Only 'acl.html' output file includes that file so there's no need to
make everything depend on it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
docs/meson.build

index 400c1ca955cc2b6354e4a03447715158d9e955eb..d18e5c1feb60e06014ef74ef76b2636ee7456e3e 100644 (file)
@@ -32,7 +32,6 @@ docs_assets = [
 
 docs_html_in_files = [
   '404',
-  'acl',
   'aclpolkit',
   'api_extension',
   'api',
@@ -199,6 +198,7 @@ docs_rst2html_gen = generator(
 #   name - base file name (required)
 #   file - generated file (required)
 # source - source filename relative to repository root (optional, if there is no source)
+# depends - explicit dependency on other input (optional)
 docs_html_in_gen = []
 
 foreach name : docs_html_in_files
@@ -219,6 +219,13 @@ foreach name : docs_rst_files
   }
 endforeach
 
+docs_html_in_gen += {
+  'name': 'acl.html',
+  'file': 'acl.html.in',
+  'source': 'docs' / 'acl.html.in',
+  'depends': aclperms_gen,
+}
+
 hvsupport_html_in = custom_target(
   'hvsupport.html.in',
   output: 'hvsupport.html.in',
@@ -272,7 +279,7 @@ foreach data : docs_html_in_gen
       '@OUTPUT@',
       data.get('source', []),
     ],
-    depends: [ aclperms_gen ],
+    depends: data.get('depends', []),
     depend_files: [ page_xsl ],
     install: true,
     install_dir: docs_html_dir,