]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: generate files when building without libvirtd
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 13 May 2011 08:02:13 +0000 (16:02 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Sun, 22 May 2011 01:36:24 +0000 (09:36 +0800)
Steps to reproduce this problem:
1. # ./autogen.sh --without-libvirtd
2. # make dist
   ...
   make[1]: Entering directory `/home/wency/source/libvirt-nodaemon/daemon'
   make[1]: *** No rule to make target `remote_dispatch_prototypes.h', needed by `distdir'.  Stop.
   make[1]: Leaving directory `/home/wency/source/libvirt-nodaemon/daemon'
   make: *** [distdir] Error 1

daemon/Makefile.am

index 7229576592bc6bac798fe4c425ff347d7f4248af..92d154fe5be2f67c92c250476922d9c987403ac3 100644 (file)
@@ -53,6 +53,59 @@ EXTRA_DIST =                                         \
 
 BUILT_SOURCES =
 
+REMOTE_PROTOCOL = $(top_srcdir)/src/remote/remote_protocol.x
+QEMU_PROTOCOL = $(top_srcdir)/src/remote/qemu_protocol.x
+
+$(srcdir)/remote_dispatch_prototypes.h: $(srcdir)/remote_generator.pl \
+               $(REMOTE_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -p remote \
+         $(REMOTE_PROTOCOL) > $@
+
+$(srcdir)/remote_dispatch_table.h: $(srcdir)/remote_generator.pl \
+               $(REMOTE_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -t remote \
+         $(REMOTE_PROTOCOL) > $@
+
+$(srcdir)/remote_dispatch_args.h: $(srcdir)/remote_generator.pl \
+               $(REMOTE_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -a remote \
+         $(REMOTE_PROTOCOL) > $@
+
+$(srcdir)/remote_dispatch_ret.h: $(srcdir)/remote_generator.pl \
+               $(REMOTE_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -r remote \
+         $(REMOTE_PROTOCOL) > $@
+
+$(srcdir)/remote_dispatch_bodies.h: $(srcdir)/remote_generator.pl \
+               $(REMOTE_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -b remote \
+         $(REMOTE_PROTOCOL) > $@
+
+$(srcdir)/qemu_dispatch_prototypes.h: $(srcdir)/remote_generator.pl \
+               $(QEMU_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -p qemu \
+         $(QEMU_PROTOCOL) > $@
+
+$(srcdir)/qemu_dispatch_table.h: $(srcdir)/remote_generator.pl \
+               $(QEMU_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -t qemu \
+         $(QEMU_PROTOCOL) > $@
+
+$(srcdir)/qemu_dispatch_args.h: $(srcdir)/remote_generator.pl \
+               $(QEMU_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -a qemu \
+         $(QEMU_PROTOCOL) > $@
+
+$(srcdir)/qemu_dispatch_ret.h: $(srcdir)/remote_generator.pl \
+               $(QEMU_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -r qemu \
+         $(QEMU_PROTOCOL) > $@
+
+$(srcdir)/qemu_dispatch_bodies.h: $(srcdir)/remote_generator.pl \
+               $(QEMU_PROTOCOL)
+       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -b qemu \
+         $(QEMU_PROTOCOL) > $@
+
 if WITH_LIBVIRTD
 
 man8_MANS = libvirtd.8
@@ -208,59 +261,6 @@ endif
 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
-
-$(srcdir)/remote_dispatch_prototypes.h: $(srcdir)/remote_generator.pl \
-               $(REMOTE_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -p remote \
-         $(REMOTE_PROTOCOL) > $@
-
-$(srcdir)/remote_dispatch_table.h: $(srcdir)/remote_generator.pl \
-               $(REMOTE_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -t remote \
-         $(REMOTE_PROTOCOL) > $@
-
-$(srcdir)/remote_dispatch_args.h: $(srcdir)/remote_generator.pl \
-               $(REMOTE_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -a remote \
-         $(REMOTE_PROTOCOL) > $@
-
-$(srcdir)/remote_dispatch_ret.h: $(srcdir)/remote_generator.pl \
-               $(REMOTE_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -r remote \
-         $(REMOTE_PROTOCOL) > $@
-
-$(srcdir)/remote_dispatch_bodies.h: $(srcdir)/remote_generator.pl \
-               $(REMOTE_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -c -b remote \
-         $(REMOTE_PROTOCOL) > $@
-
-$(srcdir)/qemu_dispatch_prototypes.h: $(srcdir)/remote_generator.pl \
-               $(QEMU_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -p qemu \
-         $(QEMU_PROTOCOL) > $@
-
-$(srcdir)/qemu_dispatch_table.h: $(srcdir)/remote_generator.pl \
-               $(QEMU_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -t qemu \
-         $(QEMU_PROTOCOL) > $@
-
-$(srcdir)/qemu_dispatch_args.h: $(srcdir)/remote_generator.pl \
-               $(QEMU_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -a qemu \
-         $(QEMU_PROTOCOL) > $@
-
-$(srcdir)/qemu_dispatch_ret.h: $(srcdir)/remote_generator.pl \
-               $(QEMU_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -r qemu \
-         $(QEMU_PROTOCOL) > $@
-
-$(srcdir)/qemu_dispatch_bodies.h: $(srcdir)/remote_generator.pl \
-               $(QEMU_PROTOCOL)
-       $(AM_V_GEN)perl -w $(srcdir)/remote_generator.pl -b qemu \
-         $(QEMU_PROTOCOL) > $@
-
 LOGROTATE_CONFS = libvirtd.qemu.logrotate libvirtd.lxc.logrotate \
                  libvirtd.uml.logrotate libvirtd.logrotate