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

Daniel P. Berrangé berrange at redhat.com
Wed Nov 20 17:08:12 UTC 2019


On Wed, Nov 20, 2019 at 03:28:47PM +0000, Daniel P. Berrangé wrote:
> 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 at redhat.com>
> ---
>  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; \

This should be

    @for dir in fonts js logos; \

to make it quiet

> +	do \
> +	  ln -s $(srcdir)/$$dir $$dir ; \

This should be prefixed by 'test -e $$dir || '

> +	done
> +	for file in $(css); \

likewise

> +	do \
> +	  ln -s $(srcdir)/$$file $$file ; \

This should be prefixed by 'test -e $$file || '

> +	done


I've made this change locally but won't post a v2 unless there are other
changes needing a respin too.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list