From 6dd7069b42ad23a9b81c0360ea9f4388d74f8932 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Thu, 14 Jun 2018 08:55:54 -0700 Subject: [PATCH] Close #194. No branch name in build version anymore --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4d54bd05..70dcc34c 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ -BRANCH := `git rev-parse --abbrev-ref HEAD` - .PHONY: dependencies install run build: go build -o bin/wtf install: - which wtf | xargs rm || true - go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.date=$(shell date +%FT%T%z)" + go clean + go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" which wtf run: build