]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Kill tools/wireshark Makefiles
authorCole Robinson <crobinso@redhat.com>
Sun, 10 Jan 2016 20:35:36 +0000 (15:35 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 12 Jan 2016 16:30:08 +0000 (11:30 -0500)
Just handle it all in tools/Makefile.am. I verified the generated output
looks similar to the pre patch output, but I didn't test it.

Makefile.am
configure.ac
tools/Makefile.am
tools/wireshark/Makefile.am [deleted file]
tools/wireshark/src/Makefile.am [deleted file]

index 708d051c5247bbd66069c0900d6192dfb4468be4..ffe051793ad060f9031256871a2dd71c28fe72f9 100644 (file)
@@ -20,7 +20,7 @@ LCOV = lcov
 GENHTML = genhtml
 
 SUBDIRS = . gnulib/lib include src daemon tools docs gnulib/tests \
-  tests po examples tools/wireshark
+  tests po examples
 
 ACLOCAL_AMFLAGS = -I m4
 
index 9b4b2902dda694ed9a647cc959b63e5848d59baf..047ad3b07f4d587c99e8e7b169089d89fe659fa8 100644 (file)
@@ -2817,9 +2817,7 @@ AC_CONFIG_FILES([\
         daemon/Makefile \
         examples/Makefile \
         tests/Makefile \
-        tools/Makefile \
-        tools/wireshark/Makefile \
-        tools/wireshark/src/Makefile])
+        tools/Makefile])
 AC_OUTPUT
 
 AC_MSG_NOTICE([])
index 73cad5071ad1a3ed825123614f702ca8c07a6589..e5c186c790cfb347b1f52a6e13621f7994439048 100644 (file)
@@ -1,4 +1,5 @@
-## Copyright (C) 2005-2015 Red Hat, Inc.
+## Copyright (C) 2005-2016 Red Hat, Inc.
+## Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
 ##
 ## This library is free software; you can redistribute it and/or
 ## modify it under the terms of the GNU Lesser General Public
@@ -56,7 +57,7 @@ EXTRA_DIST = \
        virsh-volume.c
 
 
-
+CLEANFILES =
 DISTCLEANFILES =
 
 confdir = $(sysconfdir)/libvirt
@@ -374,7 +375,52 @@ libvirt-guests.service: libvirt-guests.service.in $(top_builddir)/config.status
            mv $@-t $@
 
 
-CLEANFILES = $(bin_SCRIPTS)
+EXTRA_DIST += \
+       wireshark/util/genxdrstub.pl \
+       wireshark/util/make-dissector-reg
+
+if WITH_WIRESHARK_DISSECTOR
+
+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
+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.h \
+               wireshark/src/libvirt/protocol.h
+
+wireshark/src/plugin.c: wireshark/src/packet-libvirt.c
+       cd wireshark/src && \
+               $(abs_top_srcdir)/tools/wireshark/util/make-dissector-reg \
+               . plugin packet-libvirt.c
+
+WS_DISSECTOR_PROTO_FILES  = \
+  $(abs_top_srcdir)/src/remote/remote_protocol.x \
+  $(abs_top_srcdir)/src/remote/qemu_protocol.x \
+  $(abs_top_srcdir)/src/remote/lxc_protocol.x \
+  $(abs_top_srcdir)/src/rpc/virkeepaliveprotocol.x
+
+wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
+               $(WS_DISSECTOR_PROTO_FILES)
+       $(MKDIR_P) wireshark/src/libvirt
+       cd wireshark/src && \
+       LIBVIRT_VERSION=$(LIBVIRT_VERSION) \
+                 $(PERL) $(abs_top_srcdir)/tools/wireshark/util/genxdrstub.pl \
+                 $(WS_DISSECTOR_PROTO_FILES)
+
+CLEANFILES += wireshark/src/plugin.c
+
+endif WITH_WIRESHARK_DISSECTOR
+
+
+clean-local:
+       -rm -rf wireshark/src/libvirt
+
+CLEANFILES += $(bin_SCRIPTS)
 CLEANFILES += *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda *.i *.s
 MAINTAINERCLEANFILES = $(dist_man1_MANS)
 
diff --git a/tools/wireshark/Makefile.am b/tools/wireshark/Makefile.am
deleted file mode 100644 (file)
index 28e6ed8..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-# Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library.  If not, see
-# <http://www.gnu.org/licenses/>.
-#
-# Author: Yuto KAWAMURA(kawamuray)
-if WITH_WIRESHARK_DISSECTOR
-SUBDIRS              = src
-endif WITH_WIRESHARK_DISSECTOR
-EXTRA_DIST           = util/genxdrstub.pl util/make-dissector-reg
diff --git a/tools/wireshark/src/Makefile.am b/tools/wireshark/src/Makefile.am
deleted file mode 100644 (file)
index a7d775f..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-# Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library.  If not, see
-# <http://www.gnu.org/licenses/>.
-#
-# Author: Yuto KAWAMURA(kawamuray)
-
-INCLUDES = \
-  -I$(top_srcdir) \
-  -I$(top_srcdir)/src -I$(top_builddir)/src    \
-  -I$(top_srcdir)/include -I$(top_builddir)/include    \
-  -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib
-
-ws_plugin_LTLIBRARIES     = libvirt.la
-libvirt_la_SOURCES        = packet-libvirt.h packet-libvirt.c plugin.c
-libvirt_la_CPPFLAGS       = $(WIRESHARK_DISSECTOR_CFLAGS)
-libvirt_la_LDFLAGS        = -avoid-version -module
-
-packet-libvirt.c: packet-libvirt.h libvirt/protocol.h
-
-plugin.c: packet-libvirt.c
-       $(srcdir)/../util/make-dissector-reg . plugin $<
-
-WS_DISSECTOR_PROTO_FILES  = \
-  $(top_srcdir)/src/remote/remote_protocol.x \
-  $(top_srcdir)/src/remote/qemu_protocol.x \
-  $(top_srcdir)/src/remote/lxc_protocol.x \
-  $(top_srcdir)/src/rpc/virkeepaliveprotocol.x
-
-libvirt/protocol.h: $(srcdir)/../util/genxdrstub.pl $(WS_DISSECTOR_PROTO_FILES)
-       $(MKDIR_P) libvirt
-       LIBVIRT_VERSION=$(LIBVIRT_VERSION) \
-          $(PERL) $(srcdir)/../util/genxdrstub.pl $(WS_DISSECTOR_PROTO_FILES)
-
-clean-local:
-       -rm -rf libvirt plugin.c