From c377c14639b08e5552e6cca6e6c0f606b0be3bd1 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Thu, 18 Jun 2020 02:27:09 +0200 Subject: [PATCH] meson: docs: copy asset data to build dir Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- 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 1a5ae23b0a..ae504358d2 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 d86d9c6c1d..09bf436a46 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -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 -- 2.47.2