mirror of
https://github.com/wader/fq.git
synced 2024-11-23 00:57:15 +03:00
make: Build with -s -w same as goreleaser
This commit is contained in:
parent
90c19c6cc1
commit
052b9c07f3
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ all: test
|
|||||||
.PHONY: fq
|
.PHONY: fq
|
||||||
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
|
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
|
||||||
fq:
|
fq:
|
||||||
CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .
|
CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION}" -trimpath -o fq .
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
# figure out all go pakges with test files
|
# figure out all go pakges with test files
|
||||||
|
Loading…
Reference in New Issue
Block a user