X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=python%2Fautomake.mk;h=7ea31186c8e146a84a8137da8017d5d3c3a231b1;hb=4fb7d8142603008589c79a6e5caed3a6da8f7188;hp=d63eb4d59f5a7cc52d7d2829eada84be93b9de20;hpb=79982e900ba733bc870e1516e46fdcda67cf9cc1;p=sliver-openvswitch.git diff --git a/python/automake.mk b/python/automake.mk index d63eb4d59..7ea31186c 100644 --- a/python/automake.mk +++ b/python/automake.mk @@ -28,6 +28,7 @@ ovs_pyfiles = \ python/ovs/socket_util.py \ python/ovs/stream.py \ python/ovs/timeval.py \ + python/ovs/version.py \ python/ovs/vlog.py \ python/ovs/util.py PYFILES = $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles) @@ -56,3 +57,10 @@ 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) > $@.tmp + echo 'VERSION = "$(VERSION)"' >> $@.tmp + echo 'BUILDNR = "$(BUILDNR)"' >> $@.tmp + mv $@.tmp $@