Skip to content

Commit

Permalink
Rename make target build to manager
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
darkowlzz authored and stefanprodan committed May 3, 2024
1 parent edccfe9 commit 0bd5b95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ ifeq ($(shell uname -s),Darwin)
ENVTEST_ARCH=amd64
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

KUBEBUILDER_ASSETS?="$(shell $(ENVTEST) --arch=$(ENVTEST_ARCH) use -i $(ENVTEST_KUBERNETES_VERSION) --bin-dir=$(ENVTEST_ASSETS_DIR) -p path)"
Expand Down

0 comments on commit 0bd5b95

Please sign in to comment.