]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs: copy asset data to build dir
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:27:09 +0000 (02:27 +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 1a5ae23b0aef51c4b3c5d794d7b7a1c28ab7fafd..ae504358d26b4c7c112579166b7133501703adb3 100644 (file)
@@ -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 \
index d86d9c6c1dac1b22ec3dbb16bc111f5fcadbf144..09bf436a468ea1c34232368197178cb9453be8a6 100644 (file)
@@ -287,3 +287,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