hs9001/Makefile

7 lines
190 B
Makefile
Raw Permalink Normal View History

2021-05-16 18:38:33 +02:00
GIT_COMMIT=$(shell git rev-list -1 HEAD)
GIT_TAG=$(shell git tag --sort="-version:refname" | head -n 1)
all:
go build -ldflags "-X main.GitCommit=${GIT_COMMIT} -X main.GitTag=${GIT_TAG}"