[libvirt] [PATCH] build: Generate libvirt_access*.xml in source dir

Eric Blake eblake at redhat.com
Fri Sep 20 12:00:31 UTC 2013


On 09/20/2013 03:50 AM, Jiri Denemark wrote:
> Technically, these files should be generated in build dir but since
> docs/newapi.xsl style sheet is expecting them to be in source dir, it's
> much easier to put them there than trying to convince newapi.xsl to look
> elsewhere.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/Makefile.am | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 1388c5f..c456d48 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -863,9 +863,9 @@ ACCESS_DRIVER_SYM_FILES = \
>  		libvirt_access_lxc.syms
>  
>  ACCESS_DRIVER_API_FILES = \
> -		libvirt_access.xml \
> -		libvirt_access_qemu.xml \
> -		libvirt_access_lxc.xml
> +		$(srcdir)/libvirt_access.xml \
> +		$(srcdir)/libvirt_access_qemu.xml \
> +		$(srcdir)/libvirt_access_lxc.xml

I just got rid of a bunch of $(srcdir) in lists...

>  
>  ACCESS_DRIVER_SOURCES = \
>  		access/viraccessperm.h access/viraccessperm.c \
> @@ -1554,15 +1554,15 @@ libvirt_access_lxc.syms: $(srcdir)/rpc/gendispatch.pl \
>  	$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=aclsym \
>  	  lxc LXC $(LXC_PROTOCOL) > $@
>  
> -libvirt_access.xml: $(srcdir)/rpc/gendispatch.pl \
> +$(srcdir)/libvirt_access.xml: $(srcdir)/rpc/gendispatch.pl \
>  			$(REMOTE_PROTOCOL) Makefile.am
>  	$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=aclapi \
>  	  remote REMOTE $(REMOTE_PROTOCOL) > $@

...by instead hard-coding $(srcdir) into the destination.  BUT that was
for C files, not .xml files, so this will probably work.  I'll reply
again once I've run it through some tests on my end.

-- 
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/e3a70976/attachment-0001.sig>


More information about the libvir-list mailing list