ovs-bugtool: Add "ovs-appctl coverage/show" output to bugtool.
[openvswitch] / utilities / bugtool / automake.mk
1 if HAVE_PYTHON
2 sbin_SCRIPTS += utilities/bugtool/ovs-bugtool
3 CLEANFILES += utilities/bugtool/ovs-bugtool
4 man_MANS += utilities/bugtool/ovs-bugtool.8
5 MAN_ROOTS += utilities/bugtool/ovs-bugtool.8
6
7 bugtool_plugins = \
8         utilities/bugtool/plugins/kernel-info/openvswitch.xml \
9         utilities/bugtool/plugins/network-status/openvswitch.xml \
10         utilities/bugtool/plugins/system-configuration.xml \
11         utilities/bugtool/plugins/system-logs/openvswitch.xml \
12         utilities/bugtool/plugins/system-configuration/openvswitch.xml
13
14 bugtool_scripts = \
15         utilities/bugtool/ovs-bugtool-cfm-show \
16         utilities/bugtool/ovs-bugtool-coverage-show \
17         utilities/bugtool/ovs-bugtool-lacp-show \
18         utilities/bugtool/ovs-bugtool-tc-class-show \
19         utilities/bugtool/ovs-bugtool-ovsdb-dump \
20         utilities/bugtool/ovs-bugtool-daemons-ver
21 scripts_SCRIPTS += $(bugtool_scripts)
22
23 bugtoolpluginsdir = $(pkgdatadir)/bugtool-plugins
24 INSTALL_DATA_LOCAL += bugtool-install-data-local
25 bugtool-install-data-local:
26         for plugin in $(bugtool_plugins); do \
27           stem=`echo "$$plugin" | sed 's,utilities/bugtool/plugins/,,'`; \
28           dir=`expr "$$stem" : '\(.*\)/[^/]*$$'`; \
29           $(MKDIR_P) "$(DESTDIR)$(bugtoolpluginsdir)/$$dir"; \
30           $(INSTALL_DATA) "$(srcdir)/$$plugin" "$(DESTDIR)$(bugtoolpluginsdir)/$$stem"; \
31         done
32
33 UNINSTALL_LOCAL += bugtool-uninstall-local
34 bugtool-uninstall-local:
35         for plugin in $(bugtool_plugins); do \
36           stem=`echo "$$plugin" | sed 's,utilities/bugtool/plugins/,,'`; \
37           rm -f "$(DESTDIR)$(bugtoolpluginsdir)/$$stem"; \
38         done
39         for plugin in $(bugtool_plugins); do \
40           stem=`echo "$$plugin" | sed 's,utilities/bugtool/plugins/,,'`; \
41           dir=`expr "$$stem" : '\(.*\)/[^/]*$$'`; \
42           rmdir "$(DESTDIR)$(bugtoolpluginsdir)/$$dir"; \
43         done; exit 0
44 endif
45
46 EXTRA_DIST += \
47         $(bugtool_plugins) \
48         $(bugtool_scripts) \
49         utilities/bugtool/ovs-bugtool.8 \
50         utilities/bugtool/ovs-bugtool.in