gotty-client version with main.VERSION
This commit is contained in:
parent
49e191195e
commit
de27363180
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue