Rename make target `build` to `manager`

Due to the existence of a BUILD_DIR called `build` the `build` make
target never works. Rename the make target as `manager`, in alignment
with other makefiles in other repos and not conflict with the `build`
directory.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
Sunny 2023-11-28 11:39:32 +00:00 committed by Stefan Prodan
parent edccfe9e65
commit 0bd5b95c89
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
1 changed files with 3 additions and 2 deletions

View File

@ -61,9 +61,10 @@ ifeq ($(shell uname -s),Darwin)
ENVTEST_ARCH=amd64 ENVTEST_ARCH=amd64
endif endif
all: build all: manager
build: ## Build manager binary # Build manager binary
manager: generate fmt vet
go build $(GO_STATIC_FLAGS) -o $(BUILD_DIR)/bin/manager main.go go build $(GO_STATIC_FLAGS) -o $(BUILD_DIR)/bin/manager main.go
KUBEBUILDER_ASSETS?="$(shell $(ENVTEST) --arch=$(ENVTEST_ARCH) use -i $(ENVTEST_KUBERNETES_VERSION) --bin-dir=$(ENVTEST_ASSETS_DIR) -p path)" KUBEBUILDER_ASSETS?="$(shell $(ENVTEST) --arch=$(ENVTEST_ARCH) use -i $(ENVTEST_KUBERNETES_VERSION) --bin-dir=$(ENVTEST_ASSETS_DIR) -p path)"