summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2016-01-12 15:56:42 -0500
committerCole Robinson <crobinso@redhat.com>2016-01-13 09:41:35 -0500
commite20dd2a4fd958900ea76d1e8e1890d2d93ebdcd8 (patch)
tree80463a958d07c6005b8d764265776a18b2453bec
parente988ba94aa5e2db450bd11585101cd93795eb116 (diff)
downloadlibvirt-e20dd2a4fd958900ea76d1e8e1890d2d93ebdcd8.tar.gz
build: fix distdir with wireshark disabled
Even though the Makefile has WITH_WIRESHARK guards, the _SOURCES variables are still processed when adding bits to the dist archive. plugin.c is a generated file that is only built when wireshark is enabled and it shouldn't be distributed, so use 'nodist'
-rw-r--r--tools/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index d38d3cbff9..5bf6a3ea69 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -386,10 +386,10 @@ ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
wireshark_src_libvirt_la_CPPFLAGS = \
-I wireshark/src $(WIRESHARK_DISSECTOR_CFLAGS)
wireshark_src_libvirt_la_LDFLAGS = -avoid-version -module
+nodist_wireshark_src_libvirt_la_SOURCES = wireshark/src/plugin.c
wireshark_src_libvirt_la_SOURCES = \
wireshark/src/packet-libvirt.h \
- wireshark/src/packet-libvirt.c \
- wireshark/src/plugin.c
+ wireshark/src/packet-libvirt.c
wireshark/src/packet-libvirt.c: wireshark/src/packet-libvirt.h \
wireshark/src/libvirt/protocol.h