From 12d4e844063c31c91922e598e32b04c65e59ab11 Mon Sep 17 00:00:00 2001 From: Igor Nemilentsev Date: Mon, 13 May 2024 15:53:02 +0300 Subject: [PATCH] Updated Makefile --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1fcd28c..e5276ac 100644 --- a/Makefile +++ b/Makefile @@ -44,15 +44,13 @@ $(GOBIN): work: $(GOBIN) build: - GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags $(LDFLAGS) -o build/lingualeo-$(GOOS)-$(GOARCH) $(CMD_PACKAGE) + CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags $(LDFLAGS) -o build/lingualeo-$(GOOS)-$(GOARCH) $(CMD_PACKAGE) cache: go clean --cache -install: clean lint test - CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go install \ - -ldflags $(LDFLAGS) \ - $(CMD_PACKAGE) +install: + CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go install -ldflags $(LDFLAGS) $(CMD_PACKAGE) test: unit