Prepare Open vSwitch 1.1.2 release.
[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
30 ovsdbmonitordir = ${pkgdatadir}/ovsdbmonitor
31 if BUILD_OVSDBMONITOR
32 noinst_SCRIPTS += ovsdb/ovsdbmonitor/ovsdbmonitor
33 ovsdbmonitor_DATA = $(ovsdbmonitor_pyfiles)
34 install-exec-hook:
35         sed -e '/NOINSTALL/d' < ovsdb/ovsdbmonitor/ovsdbmonitor > ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
36         chmod +x ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
37         $(INSTALL_PROGRAM) ovsdb/ovsdbmonitor/ovsdbmonitor.tmp $(DESTDIR)$(bindir)/ovsdbmonitor
38         rm ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
39 DISTCLEANFILES += \
40         ovsdb/ovsdbmonitor/ovsdbmonitor \
41         ovsdb/ovsdbmonitor/ovsdbmonitor.tmp
42 endif
43
44 uninstall-local: ovsdbmonitor-uninstall-local
45 ovsdbmonitor-uninstall-local:
46         rm -f $(DESTDIR)$(bindir)/ovsdbmonitor
47
48 SUFFIXES += .ui .py
49 .ui.py:
50         $(PYUIC4) $< | sed 's/from PyQt4 import QtCore, QtGui/\
51 try:\
52     from OVEStandard import globalForcePySide\
53     if globalForcePySide:\
54         raise Exception()\
55     from PyQt4 import QtCore, QtGui\
56 except:\
57     from PySide import QtCore, QtGui/' > $@