[libvirt] [PATCH] docs: Load libvirt_access*.xml from build dir

Eric Blake eblake at redhat.com
Fri Sep 20 14:46:01 UTC 2013


On 09/20/2013 08:13 AM, Jiri Denemark wrote:
> The xml files are generated in build directory and thus docs/newapi.xsl
> was not able to find them in a VPATH build.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  docs/Makefile.am | 1 +
>  docs/newapi.xsl  | 8 +++++---
>  2 files changed, 6 insertions(+), 3 deletions(-)

ACK, once you resolve the default setting of builddir when not run by
make, and once you fix a nit:

> 
> diff --git a/docs/Makefile.am b/docs/Makefile.am
> index c6a3ead..faf2a32 100644
> --- a/docs/Makefile.am
> +++ b/docs/Makefile.am
> @@ -242,6 +242,7 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in
>  html/index.html: libvirt-api.xml newapi.xsl page.xsl sitemap.html.in
>  	$(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \
>  	  $(XSLTPROC) --nonet -o $(srcdir)/ \
> +	  --stringparam builddir $(abs_top_builddir) \

I don't know if we are fully clean in the rest of our makefile, but in
general, automake tries to allow $(abs_top_builddir) that contains
spaces (it guarantees that there are NOT spaces in any name relative to
$(builddir), where the idea is that some people build under '/home/full
name/dir/').   Therefore, you should write this as '$(abs_top_builddir)'.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130920/af7e7374/attachment-0001.sig>


More information about the libvir-list mailing list