Skip to content

Commit

Permalink
Chore
Browse files Browse the repository at this point in the history
  • Loading branch information
moutend committed May 19, 2017
1 parent d1ff1b2 commit 93d33ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
GOVERSION := $(shell go version)
RELEASE_DIR=bin
REVISION=$(shell git rev-parse --verify HEAD | cut -c-6)

Expand All @@ -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)/*

0 comments on commit 93d33ce

Please sign in to comment.