[libvirt PATCH 327/351] meson: docs: copy asset data to build dir

Pavel Hrdina phrdina at redhat.com
Thu Jul 16 09:59:23 UTC 2020


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 docs/Makefile.am | 4 ----
 docs/meson.build | 7 +++++++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 1a5ae23b0ae..ae504358d26 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -46,10 +46,6 @@ vpathhack:
 	do \
 	  test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \
 	done
-	@for file in $(assets); \
-	do \
-	  test -e $$file || ln -s $(srcdir)/$$file $$file ; \
-	done
 
 apihtml = \
   html/index.html \
diff --git a/docs/meson.build b/docs/meson.build
index 463caa5e3e1..bc9524eb69e 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -280,3 +280,10 @@ foreach data : docs_html_in_gen
     install_dir: docs_html_dir,
   )
 endforeach
+
+
+# This hack enables us to view the web pages
+# from within the uninstalled build tree
+foreach file : docs_assets
+  configure_file(input: file, output: file, copy: true)
+endforeach
-- 
2.26.2




More information about the libvir-list mailing list