meson: docs: copy asset data to build dir

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-18 02:27:09 +02:00
parent c0d2d071df
commit c377c14639
2 changed files with 7 additions and 4 deletions

View 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 \

View 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