diff --git a/coreapi/Makefile.am b/coreapi/Makefile.am index e57492387..b5eab37d3 100644 --- a/coreapi/Makefile.am +++ b/coreapi/Makefile.am @@ -199,7 +199,7 @@ AM_CXXFLAGS=$(COMMON_CFLAGS) $(STRICT_OPTIONS_CXX) make_gitversion_h: if test -n "$(GITLOG)" ; then \ if test "$(GITDESCRIBE)" != "" ; then \ - if test "$(GIT_TAG)" != "$(PACKAGE_VERSION)" ; then \ + if [ "$(GIT_TAG)" != "$(PACKAGE_VERSION)" ] && [[ ! "$(GIT_TAG)" =~ "$(PACKAGE_VERSION)-" ]]; then \ $(ECHO) "*** PACKAGE_VERSION and git tag differ. Please put them identical."; \ exit 1; \ fi ; \