diff --git a/Makefile b/Makefile index 3d6736b..5ca70f0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -GOVERSION := $(shell go version) RELEASE_DIR=bin REVISION=$(shell git rev-parse --verify HEAD | cut -c-6) @@ -19,12 +18,10 @@ $(DIRNAME): ifndef VERSION @echo '[ERROR] $$VERSION must be specified' exit 255 -endif -ifndef VERSION endif @cd example/$(DIRNAME);\ go build -ldflags "-X main.revision=$(REVISION) -X main.version=$(VERSION)" - @mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-v$(VERSION)-$(GOARCH).exe + @mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-$(VERSION)-$(GOARCH).exe clean: rm -rf $(RELEASE_DIR)/*