From 9434d7e139ff93a04c95b977f130ec7b098b1179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 20 Nov 2019 15:17:22 +0000 Subject: [PATCH] docs: fix ability to view web pages from build tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of the web content is only present in the source tree, thus when viewing pages from the build tree they appear missing. Reviewed-by: Pavel Hrdina Signed-off-by: Daniel P. Berrangé --- docs/Makefile.am | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/Makefile.am b/docs/Makefile.am index 50b2fd7066..5c76891ba4 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -39,6 +39,30 @@ modules_admin = libvirt-admin modules_qemu = libvirt-qemu modules_lxc = libvirt-lxc +all: vpathhack + +# This hack enables us to view the web pages +# from within the uninstalled build tree +vpathhack: + @for dir in fonts js logos; \ + do \ + test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \ + done + @for file in $(css); \ + do \ + test -e $$file || ln -s $(srcdir)/$$file $$file ; \ + done + +clean-local: + for dir in fonts js logos; \ + do \ + rm -f $$dir ; \ + done + for file in $(css); \ + do \ + rm -f $$file ; \ + done + apihtml = \ html/index.html \ $(apihtml_generated) -- GitLab