From 6067a0ffb06f437aaca29c37e5119832f58beae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 28 Feb 2022 13:02:43 +0100 Subject: [PATCH] Remove 'make static' target Having `CGO_ENABLED=0` already produces a static binary. --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d8dc086d..8f5c76a5 100644 --- a/Makefile +++ b/Makefile @@ -69,8 +69,4 @@ clean: rm -f pkg/api/*.gen.go internal/*/mocks/*.gen.go internal/*/*/mocks/*.gen.go @$(MAKE) generate -static: vet lint generate - go build -v -o flamenco-manager-static -tags netgo -ldflags="-extldflags \"-static\" -w -s ${LDFLAGS}" ${PKG}/cmd/flamenco-manager - go build -v -o flamenco-worker-static -tags netgo -ldflags="-extldflags \"-static\" -w -s ${LDFLAGS}" ${PKG}/cmd/flamenco-worker - -.PHONY: run application version static vet lint deploy flamenco-manager flamenco-worker socketio-poc generate with-deps +.PHONY: run application version vet lint deploy flamenco-manager flamenco-worker socketio-poc generate with-deps