Skip to content

Commit 93d33ce

Browse files
committed
Chore
1 parent d1ff1b2 commit 93d33ce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
GOVERSION := $(shell go version)
21
RELEASE_DIR=bin
32
REVISION=$(shell git rev-parse --verify HEAD | cut -c-6)
43

@@ -19,12 +18,10 @@ $(DIRNAME):
1918
ifndef VERSION
2019
@echo '[ERROR] $$VERSION must be specified'
2120
exit 255
22-
endif
23-
ifndef VERSION
2421
endif
2522
@cd example/$(DIRNAME);\
2623
go build -ldflags "-X main.revision=$(REVISION) -X main.version=$(VERSION)"
27-
@mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-v$(VERSION)-$(GOARCH).exe
24+
@mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-$(VERSION)-$(GOARCH).exe
2825

2926
clean:
3027
rm -rf $(RELEASE_DIR)/*

0 commit comments

Comments
 (0)