gotty-client version with main.VERSION

This commit is contained in:
Quentin Perez 2015-10-23 17:05:20 +02:00
parent 49e191195e
commit de27363180
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ run-docker: build-docker
$(notdir $(COMMANDS)): $(SOURCES) $(notdir $(COMMANDS)): $(SOURCES)
gofmt -w $(PACKAGES) ./cmd/$@ gofmt -w $(PACKAGES) ./cmd/$@
go test -i $(PACKAGES) ./cmd/$@ go test -i $(PACKAGES) ./cmd/$@
go build -o $@ ./cmd/$@ go build -ldflags "-X main.VERSION=$(VERSION)" -o $@ ./cmd/$@
./$@ --version ./$@ --version