]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't ship generated python/libvirt.? files.
authorPhilipp Hahn <hahn@univention.de>
Thu, 15 Apr 2010 10:49:33 +0000 (12:49 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 20 Apr 2010 14:13:06 +0000 (08:13 -0600)
libvirt.c and libvirt.h are auto-generated files. Mentioning their names
in *_SOURCES includes them in the distribution. During an out-of-tree
build these shipped files are included instead of the auto-generated
version, potentially breaking the build (as it happend in 0.8.0, because
the shipped libvirt.h was missing the declaration for
'libvirt_virDomainUpdateDeviceFlags')

Use the nodist_*_SOURCES automake variable instead.

Signed-off-by: Philipp Hahn <hahn@univention.de>
python/Makefile.am

index 6b67e382c653ded2409ec0f18dd1e0b41ddd3f19..eda2866855f48d5f64db1a757092b9346931a6ca 100644 (file)
@@ -34,7 +34,8 @@ all-local: libvirt.py
 
 pyexec_LTLIBRARIES = libvirtmod.la
 
-libvirtmod_la_SOURCES = libvirt-override.c typewrappers.c libvirt.c libvirt.h
+libvirtmod_la_SOURCES = libvirt-override.c typewrappers.c
+nodist_libvirtmod_la_SOURCES = libvirt.c libvirt.h
 # Python <= 2.4 header files contain a redundant decl, hence we
 # need extra flags here
 libvirtmod_la_CFLAGS = $(WARN_PYTHON_CFLAGS)