]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix 'make dist' error
authorWen Congyang <wency@cn.fujitsu.com>
Thu, 13 Oct 2011 07:18:31 +0000 (15:18 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Sat, 15 Oct 2011 15:10:01 +0000 (23:10 +0800)
When I run 'make dist', I receive the following error messages:
make[1]: Entering directory `/home/wency/source/libvirt/src'
  GEN    remote/remote_protocol.h
  GEN    remote/remote_protocol.c
  GEN    remote/qemu_protocol.h
  GEN    remote/qemu_protocol.c
  GEN    remote/qemu_client_bodies.h
  CC     libvirt_driver_remote_la-remote_protocol.lo
In file included from ./remote/remote_protocol.h:16,
                 from ./remote/remote_protocol.c:7:
/internal.h:249:23: error: probes.h: No such file or directory
make[1]: *** [libvirt_driver_remote_la-remote_protocol.lo] Error 1
make[1]: Leaving directory `/home/wency/source/libvirt/src'
make: *** [distdir] Error 1

The reason is that we use probes.h before generating it.

src/Makefile.am

index 302d395d01700dffb4f0fe5715064593b2b7c8c7..510e5efdc0dbada4815e2131dee376781aee96ce 100644 (file)
@@ -189,6 +189,11 @@ REMOTE_DRIVER_GENERATED = \
                $(srcdir)/remote/qemu_protocol.h                \
                $(srcdir)/remote/qemu_client_bodies.h
 
+# The remote RPC driver needs probes.h
+if WITH_DTRACE
+REMOTE_DRIVER_GENERATED += $(srcdir)/probes.h
+endif
+
 REMOTE_PROTOCOL = $(srcdir)/remote/remote_protocol.x
 QEMU_PROTOCOL = $(srcdir)/remote/qemu_protocol.x
 REMOTE_DRIVER_PROTOCOL = $(REMOTE_PROTOCOL) $(QEMU_PROTOCOL)