Update Makefile to new ldflags syntax
This commit is contained in:
parent
64335f33d7
commit
f8601c1b90
|
@ -1,4 +1,6 @@
|
||||||
|
/build
|
||||||
host_key
|
host_key
|
||||||
host_key.pub
|
host_key.pub
|
||||||
ssh-chat
|
ssh-chat
|
||||||
*.log
|
*.log
|
||||||
|
.*
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ SRCS = %.go
|
||||||
all: $(BINARY)
|
all: $(BINARY)
|
||||||
|
|
||||||
$(BINARY): deps **/**/*.go **/*.go *.go
|
$(BINARY): deps **/**/*.go **/*.go *.go
|
||||||
go build -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
|
go build -ldflags "-X main.buildCommit=`git describe --long --tags --dirty --always`" ./cmd/ssh-chat
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
go get ./...
|
go get ./...
|
||||||
|
|
Loading…
Reference in New Issue