diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2011-05-06 14:11:32 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-05-06 16:18:31 -0600 |
commit | fb1e8d9c4406792e67f051ac8da3dd9c9f031ad2 (patch) | |
tree | 2a4854884e07640d71fbc7568f9ecf2a12889b0f /daemon/Makefile.am | |
parent | build: rename generated files to .h, for automake's sake (diff) | |
download | libvirt-fb1e8d9c4406792e67f051ac8da3dd9c9f031ad2.tar.gz libvirt-fb1e8d9c4406792e67f051ac8da3dd9c9f031ad2.tar.bz2 libvirt-fb1e8d9c4406792e67f051ac8da3dd9c9f031ad2.zip |
build: refactor generated RPC files
Always generate the rpc files, and require rpcgen during bootstrap.
* daemon/Makefile.am: Removed generated files with
maintainer-clean target
* src/Makefile.am: Removed generated files with
maintainer-clean target. Always run 'rpcgen' if
generated files are missing
Diffstat (limited to 'daemon/Makefile.am')
-rw-r--r-- | daemon/Makefile.am | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am index c6f4d2909..114adf3f7 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -2,21 +2,26 @@ CLEANFILES = -DAEMON_SOURCES = \ - libvirtd.c libvirtd.h \ - remote.c remote.h \ - dispatch.c dispatch.h \ - stream.c stream.h \ +DAEMON_GENERATED = \ remote_dispatch_prototypes.h \ remote_dispatch_table.h \ remote_dispatch_args.h \ remote_dispatch_ret.h \ + remote_dispatch_bodies.h \ qemu_dispatch_prototypes.h \ qemu_dispatch_table.h \ qemu_dispatch_args.h \ qemu_dispatch_ret.h \ + qemu_dispatch_bodies.h + +DAEMON_SOURCES = \ + libvirtd.c libvirtd.h \ + remote.c remote.h \ + dispatch.c dispatch.h \ + stream.c stream.h \ ../src/remote/remote_protocol.c \ - ../src/remote/qemu_protocol.c + ../src/remote/qemu_protocol.c \ + $(DAEMON_GENERATED) AVAHI_SOURCES = \ mdns.c mdns.h @@ -202,20 +207,8 @@ install-data-polkit:: uninstall-data-polkit:: endif - -remote.c: \ - remote_dispatch_prototypes.h \ - remote_dispatch_table.h \ - remote_dispatch_bodies.h \ - qemu_dispatch_prototypes.h \ - qemu_dispatch_table.h \ - qemu_dispatch_bodies.h - -remote.h: \ - remote_dispatch_args.h \ - remote_dispatch_ret.h \ - qemu_dispatch_args.h \ - qemu_dispatch_ret.h +remote.c: $(DAEMON_GENERATED) +remote.h: $(DAEMON_GENERATED) REMOTE_PROTOCOL = $(top_srcdir)/src/remote/remote_protocol.x QEMU_PROTOCOL = $(top_srcdir)/src/remote/qemu_protocol.x @@ -360,4 +353,4 @@ endif CLEANFILES += $(BUILT_SOURCES) $(man8_MANS) CLEANFILES += *.cov *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda -MAINTAINERCLEANFILES = $(srcdir)/libvirtd.8.in +MAINTAINERCLEANFILES = $(srcdir)/libvirtd.8.in $(DAEMON_GENERATED) |