1
1
mirror of https://github.com/wader/fq.git synced 2024-12-22 21:01:37 +03:00

make: Silence git if no repo version found

This commit is contained in:
Mattias Wadman 2021-09-18 18:22:27 +02:00
parent 790198c59f
commit 98a8baea22

View File

@ -1,7 +1,7 @@
all: test
.PHONY: fq
fq: VERSION=$(shell git describe --all --long --dirty || echo nogit)
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
fq:
go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .