Use ovs_be32 in nx_flow_mod_table_id
[openvswitch] / python / automake.mk
index d63eb4d59f5a7cc52d7d2829eada84be93b9de20..b60e26b1bfabab8e30af8f6c2f5499d188f802fb 100644 (file)
@@ -28,8 +28,11 @@ ovs_pyfiles = \
        python/ovs/socket_util.py \
        python/ovs/stream.py \
        python/ovs/timeval.py \
-       python/ovs/vlog.py \
-       python/ovs/util.py
+       python/ovs/unixctl.py \
+       python/ovs/util.py \
+       python/ovs/version.py \
+       python/ovs/vlog.py
+
 PYFILES = $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles)
 EXTRA_DIST += $(PYFILES)
 PYCOV_CLEAN_FILES += $(PYFILES:.py=.py,cover)
@@ -56,3 +59,9 @@ install-data-local: ovs-install-data-local
 UNINSTALL_LOCAL += ovs-uninstall-local
 ovs-uninstall-local:
        rm -f $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
+
+ALL_LOCAL += $(srcdir)/python/ovs/version.py
+$(srcdir)/python/ovs/version.py: config.status
+       $(ro_shell) > $(@F).tmp
+       echo 'VERSION = "$(VERSION)"' >> $(@F).tmp
+       if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi