]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs: generate aclperms.htmlinc
authorPavel Hrdina <phrdina@redhat.com>
Thu, 23 Jul 2020 16:16:14 +0000 (18:16 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
docs/Makefile.am
docs/meson.build

index f54336cf35dc56e1358016505df7ef1671caa969..0584702f7a1725e812c494a57682bc33c1e79c37 100644 (file)
@@ -300,12 +300,6 @@ html_DATA = $(dot_html)
 schemadir = $(pkgdatadir)/schemas
 schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
 
-acl_generated = aclperms.htmlinc
-
-aclperms.htmlinc: $(top_srcdir)/src/access/viraccessperm.h \
-        $(top_srcdir)/scripts/genaclperms.py Makefile.am
-       $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/genaclperms.py $< > $@
-
 hvsupport.html: hvsupport.html.in
 
 hvsupport.html.in: $(top_srcdir)/scripts/hvsupport.py $(api_DATA) \
index 7fbd46af7c717be01f581dd10eeb8aca33caa491..f271c0aa2334b39796a1332b346e496d4469166f 100644 (file)
@@ -29,6 +29,16 @@ docs_assets = [
 
 install_data(docs_assets, install_dir: docs_html_dir)
 
+aclperms_gen = custom_target(
+  'aclperms.htmlinc',
+  input: access_perm_h,
+  output: 'aclperms.htmlinc',
+  command: [
+    meson_python_prog, python3_prog.path(), genaclperms_prog.path(), '@INPUT@',
+  ],
+  capture: true,
+)
+
 docs_timestamp = run_command(
   python3_prog, meson_timestamp_prog.path(), env: runutf8
 ).stdout().strip()