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

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

 



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@xxxxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]