From a534ebaedb116baf4f7ea0b097c373480482a00d Mon Sep 17 00:00:00 2001 From: changzhen Date: Thu, 10 Nov 2022 14:34:58 +0800 Subject: [PATCH] remove $(SOURCES) when complie binary Signed-off-by: changzhen --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 19dfbc98a..05c39e516 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ GOOS ?= $(shell go env GOOS) GOARCH ?= $(shell go env GOARCH) -SOURCES := $(shell find . -type f -name '*.go') LDFLAGS='$(shell hack/version.sh)' # Images management @@ -50,7 +49,7 @@ CMD_TARGET=$(TARGETS) $(CTL_TARGETS) all: $(CMD_TARGET) .PHONY: $(CMD_TARGET) -$(CMD_TARGET): $(SOURCES) +$(CMD_TARGET): LDFLAGS=$(LDFLAGS) BUILD_PLATFORMS=$(GOOS)/$(GOARCH) hack/build.sh $@ # Build image.