diff --git a/Makefile b/Makefile index 5f5e6a9..1e52bfa 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ endif # Used for semver bumping PROTECTED_BRANCH := master APP_NAME := $(shell basename -s .git `git config --get remote.origin.url`) -CURRENT_VERSION := $(shell git describe --abbrev=0 --tags) +CURRENT_VERSION := $(shell git describe --abbrev=0 --tags --match "v[0-9]*\.[0-9]*\.[0-9]*") VERSION_PARTS := $(subst ., ,$(subst v,,$(subst -rc, ,$(CURRENT_VERSION)))) MAJOR := $(word 1,$(VERSION_PARTS)) MINOR := $(word 2,$(VERSION_PARTS))