diff --git a/Makefile b/Makefile index 89fffaf45a..9bc579c19e 100644 --- a/Makefile +++ b/Makefile @@ -970,13 +970,6 @@ docker: # support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" . # This endif closes the if at the top of the file - -# 添加一个新目标,用于构建 controller-manager -.PHONY: controller-manager -controller-manager: go-check - @echo "Building controller-manager..." - CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o controller-manager modules/k8s/cmd/controller-manager/controller-manager.go - endif # Disable parallel execution because it would break some targets that don't