The problem was that the version is recovered from the git tag, which
has the ~ replaced by _. This broke the sequencing of version numbers.
ifneq ($(MAKECMDGOALS),release-message)
ifneq ($(MAKECMDGOALS),pre-release)
ifeq ($(IS_GIT),yes)
ifneq ($(MAKECMDGOALS),release-message)
ifneq ($(MAKECMDGOALS),pre-release)
ifeq ($(IS_GIT),yes)
-VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/-/+/ -e s/-/~/)
+VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)