1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Close #194. No branch name in build version anymore

This commit is contained in:
Chris Cummer 2018-06-14 08:55:54 -07:00
parent e5254fe154
commit 6dd7069b42

View File

@ -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