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:
parent
e5254fe154
commit
6dd7069b42
6
Makefile
6
Makefile
@ -1,13 +1,11 @@
|
|||||||
BRANCH := `git rev-parse --abbrev-ref HEAD`
|
|
||||||
|
|
||||||
.PHONY: dependencies install run
|
.PHONY: dependencies install run
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -o bin/wtf
|
go build -o bin/wtf
|
||||||
|
|
||||||
install:
|
install:
|
||||||
which wtf | xargs rm || true
|
go clean
|
||||||
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.date=$(shell date +%FT%T%z)"
|
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
|
||||||
which wtf
|
which wtf
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user