We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1ff1b2 commit 93d33ceCopy full SHA for 93d33ce
Makefile
@@ -1,4 +1,3 @@
1
-GOVERSION := $(shell go version)
2
RELEASE_DIR=bin
3
REVISION=$(shell git rev-parse --verify HEAD | cut -c-6)
4
@@ -19,12 +18,10 @@ $(DIRNAME):
19
18
ifndef VERSION
20
@echo '[ERROR] $$VERSION must be specified'
21
exit 255
22
-endif
23
-ifndef VERSION
24
endif
25
@cd example/$(DIRNAME);\
26
go build -ldflags "-X main.revision=$(REVISION) -X main.version=$(VERSION)"
27
- @mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-v$(VERSION)-$(GOARCH).exe
+ @mv example/$(DIRNAME)/$(DIRNAME).exe bin/$(DIRNAME)-$(VERSION)-$(GOARCH).exe
28
29
clean:
30
rm -rf $(RELEASE_DIR)/*
0 commit comments