Mercurial > yakumo_izuru > aya
changeset 56:315dee06253e draft
Make use of tags
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Sun, 09 Apr 2023 02:45:23 +0000 |
parents | c6785950280e |
children | 9e556e91fbf6 |
files | Makefile |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Apr 09 02:39:19 2023 +0000 +++ b/Makefile Sun Apr 09 02:45:23 2023 +0000 @@ -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"`