[PATCHv2 5/3] build: fix VPATH builds

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

 



* src/Makefile.am (REMOTE_DRIVER_GENERATED): Generated files
should live in $(srcdir). Update rules to reflect this.
---

This still doesn't fix the fact that 'make dist' under WITH_REMOTE
false is broken, but one thing at a time.

 src/Makefile.am |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index b7ea8d8..cea3d39 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -155,24 +155,24 @@ CONF_SOURCES =							\

 # The remote RPC driver, covering domains, storage, networks, etc
 REMOTE_DRIVER_GENERATED = \
-		remote/remote_protocol.c			\
-		remote/remote_protocol.h			\
-		remote/remote_client_bodies.h			\
-		remote/qemu_protocol.c				\
-		remote/qemu_protocol.h				\
-		remote/qemu_client_bodies.h
-
-REMOTE_PROTOCOL = $(top_srcdir)/src/remote/remote_protocol.x
-QEMU_PROTOCOL = $(top_srcdir)/src/remote/qemu_protocol.x
+		$(srcdir)/remote/remote_protocol.c		\
+		$(srcdir)/remote/remote_protocol.h		\
+		$(srcdir)/remote/remote_client_bodies.h		\
+		$(srcdir)/remote/qemu_protocol.c		\
+		$(srcdir)/remote/qemu_protocol.h		\
+		$(srcdir)/remote/qemu_client_bodies.h
+
+REMOTE_PROTOCOL = $(srcdir)/remote/remote_protocol.x
+QEMU_PROTOCOL = $(srcdir)/remote/qemu_protocol.x
 REMOTE_DRIVER_PROTOCOL = $(REMOTE_PROTOCOL) $(QEMU_PROTOCOL)

-remote/remote_client_bodies.h: $(top_srcdir)/daemon/remote_generator.pl \
-		$(REMOTE_PROTOCOL)
+$(srcdir)/remote/remote_client_bodies.h: $(REMOTE_PROTOCOL) \
+		$(top_srcdir)/daemon/remote_generator.pl
 	$(AM_V_GEN)perl -w $(top_srcdir)/daemon/remote_generator.pl \
 	  -c -k remote $(REMOTE_PROTOCOL) > $@

-remote/qemu_client_bodies.h: $(top_srcdir)/daemon/remote_generator.pl \
-		$(QEMU_PROTOCOL)
+$(srcdir)/remote/qemu_client_bodies.h: $(QEMU_PROTOCOL) \
+		$(top_srcdir)/daemon/remote_generator.pl
 	$(AM_V_GEN)perl -w $(top_srcdir)/daemon/remote_generator.pl \
 	  -k qemu $(QEMU_PROTOCOL) > $@

@@ -549,15 +549,16 @@ endif
 libvirt_driver_remote_la_SOURCES = $(REMOTE_DRIVER_SOURCES)


-remote/remote_driver.c: $(REMOTE_DRIVER_GENERATED)
+$(srcdir)/remote/remote_driver.c: $(REMOTE_DRIVER_GENERATED)

-remote/%_protocol.c: remote/%_protocol.x remote/%_protocol.h
+$(srcdir)/remote/%_protocol.c: $(srcdir)/remote/%_protocol.x \
+		$(srcdir)/remote/%_protocol.h
 	$(AM_V_GEN)perl -w $(srcdir)/remote/rpcgen_fix.pl $(RPCGEN) -c \
-               $< $@
+	       $< $@

-remote/%_protocol.h: remote/%_protocol.x
+$(srcdir)/remote/%_protocol.h: $(srcdir)/remote/%_protocol.x
 	$(AM_V_GEN)perl -w $(srcdir)/remote/rpcgen_fix.pl $(RPCGEN) -h \
-               $< $@
+	       $< $@

 endif

-- 
1.7.4.4

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