Mercurial > yakumo_izuru > aya
comparison Makefile @ 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 | 787b5ee0289d |
comparison
equal
deleted
inserted
replaced
55:c6785950280e | 56:315dee06253e |
---|---|
1 destdir ?= | 1 destdir ?= |
2 goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build" | 2 goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build" |
3 prefix ?= /usr/local | 3 prefix ?= /usr/local |
4 version ?= `git rev-list --count HEAD || echo "$version"` | 4 version ?= `git describe --abbrev=0 --tags || echo "$version"` |
5 commit ?= `git rev-parse --short HEAD || echo "$commit"` | 5 commit ?= `git rev-parse --short HEAD || echo "$commit"` |
6 | 6 |
7 | 7 |
8 build: | 8 build: |
9 go build ${goflags} ./cmd/aya | 9 go build ${goflags} ./cmd/aya |