diff --git a/Makefile b/Makefile index 4d54bd059..70dcc34c3 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