[PATCH 6/7] docs: fix ability to view web pages from build tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some of the web content is only present in the source tree, thus when
viewing pages from the build tree they appear missing.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 docs/Makefile.am | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 50b2fd7066..0c828102e1 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 \
+	  ln -s $(srcdir)/$$dir $$dir ; \
+	done
+	for file in $(css); \
+	do \
+	  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)
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux