Skip to content

Commit 66e42f5

Browse files
committed
add version number to release binary
1 parent 466cfde commit 66e42f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ TARGETS = linux-386 linux-amd64 linux-arm linux-arm64 darwin-amd64 windows-386 w
22
COMMAND_NAME = httpstat
33
PACKAGE_NAME = github.com/davecheney/$(COMMAND_NAME)
44
LDFLAGS = -ldflags=-X=main.version=$(VERSION)
5-
OBJECTS = $(patsubst $(COMMAND_NAME)-windows-amd64,$(COMMAND_NAME)-windows-amd64.exe, $(patsubst $(COMMAND_NAME)-windows-386,$(COMMAND_NAME)-windows-386.exe, $(patsubst %,$(COMMAND_NAME)-%, $(TARGETS))))
5+
OBJECTS = $(patsubst $(COMMAND_NAME)-windows-amd64%,$(COMMAND_NAME)-windows-amd64%.exe, $(patsubst $(COMMAND_NAME)-windows-386,$(COMMAND_NAME)-windows-386.exe, $(patsubst %,$(COMMAND_NAME)-%-v$(VERSION), $(TARGETS))))
66

77
release: check-env $(OBJECTS) ## Build release binaries (requires VERSION)
88

9-
clean: ## Remove release binaries
9+
clean: check-env ## Remove release binaries
1010
rm $(OBJECTS)
1111

1212
$(OBJECTS): $(wildcard *.go)

0 commit comments

Comments
 (0)