Make use of tags
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/aya/trunk@57 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
||||
destdir ?=
|
||||
goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build"
|
||||
prefix ?= /usr/local
|
||||
version ?= `git rev-list --count HEAD || echo "$version"`
|
||||
version ?= `git describe --abbrev=0 --tags || echo "$version"`
|
||||
commit ?= `git rev-parse --short HEAD || echo "$commit"`
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user