build static binary
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ deps:
|
|||||||
$(GO) mod download
|
$(GO) mod download
|
||||||
|
|
||||||
build: deps
|
build: deps
|
||||||
$(GO) build -ldflags "-X fes/modules/version.gitCommit=$(shell git rev-parse --short HEAD)" -o fes
|
CGO_ENABLED=0 $(GO) build -ldflags "-X fes/modules/version.gitCommit=$(shell git rev-parse --short HEAD)" -o fes
|
||||||
@echo "Fes is now built to ./fes"
|
@echo "Fes is now built to ./fes"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
Reference in New Issue
Block a user