Build Makefile changes

This commit is contained in:
Greg Szabo 2017-11-23 00:07:03 -05:00
parent ae85a7ae41
commit 4b7260cdc5
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@ build-basecoin: git-branch
###
# set app_version
version-%: $(GOPATH)/bin/%
version-%:
@echo "Checking if binary exists"
test -n $(GOPATH)/bin/$*
@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 ' ))