Update Makefile to new ldflags syntax
authorAndrey Petrov <andrey.petrov@shazow.net>
Sat, 9 Jul 2016 17:57:32 +0000 (13:57 -0400)
committerAndrey Petrov <andrey.petrov@shazow.net>
Sat, 9 Jul 2016 17:57:32 +0000 (13:57 -0400)
.gitignore
Makefile

index 6207059337d01e87fb2d767f2170e4a5d018d1db..593c721c2f24cded8557aed04a92ee9ceeb7d40e 100644 (file)
@@ -1,4 +1,6 @@
+/build
 host_key
 host_key.pub
 ssh-chat
 *.log
+.*
index 699badfd3191ab114dfd024d8f788c70e249051f..735c767fb54220826e20d4bb43acb34842374e62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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 ./...