From f8601c1b9032e9fb0faf23d0d2473c81cf09d563 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Sat, 9 Jul 2016 13:57:32 -0400 Subject: [PATCH] Update Makefile to new ldflags syntax --- .gitignore | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6207059..593c721 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ +/build host_key host_key.pub ssh-chat *.log +.* diff --git a/Makefile b/Makefile index 699badf..735c767 100644 --- 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 ./...