xenserver: Restart ovs-xapi-sync on kmod reload.
[sliver-openvswitch.git] / ovsdb / ovsdbmonitor / automake.mk
1 ovsdbmonitor_pyfiles = \
2         ovsdb/ovsdbmonitor/OVEApp.py \
3         ovsdb/ovsdbmonitor/OVECommonWindow.py \
4         ovsdb/ovsdbmonitor/OVEConfig.py \
5         ovsdb/ovsdbmonitor/OVEConfigWindow.py \
6         ovsdb/ovsdbmonitor/OVEFetch.py \
7         ovsdb/ovsdbmonitor/OVEFlowWindow.py \
8         ovsdb/ovsdbmonitor/OVEHostWindow.py \
9         ovsdb/ovsdbmonitor/OVELogWindow.py \
10         ovsdb/ovsdbmonitor/OVELogger.py \
11         ovsdb/ovsdbmonitor/OVEMainWindow.py \
12         ovsdb/ovsdbmonitor/OVEStandard.py \
13         ovsdb/ovsdbmonitor/OVEUtil.py \
14         ovsdb/ovsdbmonitor/Ui_ConfigWindow.py \
15         ovsdb/ovsdbmonitor/Ui_FlowWindow.py \
16         ovsdb/ovsdbmonitor/Ui_HostWindow.py \
17         ovsdb/ovsdbmonitor/Ui_LogWindow.py \
18         ovsdb/ovsdbmonitor/Ui_MainWindow.py \
19         ovsdb/ovsdbmonitor/qt4reactor.py
20 EXTRA_DIST += \
21         $(ovsdbmonitor_pyfiles) \
22         ovsdb/ovsdbmonitor/COPYING \
23         ovsdb/ovsdbmonitor/ConfigWindow.ui \
24         ovsdb/ovsdbmonitor/FlowWindow.ui \
25         ovsdb/ovsdbmonitor/HostWindow.ui \
26         ovsdb/ovsdbmonitor/LogWindow.ui \
27         ovsdb/ovsdbmonitor/MainWindow.ui \
28         ovsdb/ovsdbmonitor/ovsdbmonitor.in
29 MAN_ROOTS += ovsdb/ovsdbmonitor/ovsdbmonitor.1
30
31 ovsdbmonitordir = ${pkgdatadir}/ovsdbmonitor
32 if BUILD_OVSDBMONITOR
33 noinst_SCRIPTS += ovsdb/ovsdbmonitor/ovsdbmonitor
34 ovsdbmonitor_DATA = $(ovsdbmonitor_pyfiles)
35 install-exec-hook:
36         sed -e '/NOINSTALL/d' < ovsdb/ovsdbmonitor/ovsdbmonitor > ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
37         chmod +x ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
38         $(INSTALL_PROGRAM) ovsdb/ovsdbmonitor/ovsdbmonitor.tmp $(DESTDIR)$(bindir)/ovsdbmonitor
39         rm ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
40 DISTCLEANFILES += \
41         ovsdb/ovsdbmonitor/ovsdbmonitor \
42         ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
43 man_MANS += ovsdb/ovsdbmonitor/ovsdbmonitor.1
44 endif
45
46 UNINSTALL_LOCAL += ovsdbmonitor-uninstall-local
47 ovsdbmonitor-uninstall-local:
48         rm -f $(DESTDIR)$(bindir)/ovsdbmonitor
49
50 SUFFIXES += .ui .py
51 .ui.py:
52         $(PYUIC4) $< | sed 's/from PyQt4 import QtCore, QtGui/\
53 try:\
54     from OVEStandard import globalForcePySide\
55     if globalForcePySide:\
56         raise Exception()\
57     from PyQt4 import QtCore, QtGui\
58 except:\
59     from PySide import QtCore, QtGui/' > $@