Update Makefile to new ldflags syntax

This commit is contained in:
Andrey Petrov 2016-07-09 13:57:32 -04:00
parent 64335f33d7
commit f8601c1b90
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
/build
host_key
host_key.pub
ssh-chat
*.log
.*

View File

@ -7,7 +7,7 @@ SRCS = %.go
all: $(BINARY)
$(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:
go get ./...