diff --git a/build/Makefile b/build/Makefile index 957d59efd..c64917604 100644 --- a/build/Makefile +++ b/build/Makefile @@ -103,7 +103,8 @@ build-basecoin: git-branch # set app_version version-%: $(GOPATH)/bin/% - test -z "$(BUILD_NUMBER)" && echo "BUILD_NUMBER is not set" && false + @echo "BUILD_NUMBER is $(BUILD_NUMBER)" + test -n "$(BUILD_NUMBER)" $(eval $*_version=$(shell $< version | head -1 | cut -d- -f1 | sed 's/^\(ethermint:\s*\|\)\(v\|\)//' | tr -d '\t ' )) # set build_folder