Skip to content

Commit

Permalink
fix make compile command
Browse files Browse the repository at this point in the history
  • Loading branch information
voigt committed Mar 9, 2024
1 parent 2412ef4 commit 0c1ecba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes

.PHONY: golangci-build
golangci-build: ## Build manager binary.
go build -ldflags "${LDFLAGS}" -a -o bin/manager cmd/main.go
go build -ldflags "${LDFLAGS}" -a -o bin/manager ./cmd/rcm/main.go

.PHONY: build
build: manifests generate fmt vet golangci-build ## Build manager binary.

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
CONTROLLER_NAMESPACE="default" go run -ldflags "${LDFLAGS}" ./cmd/main.go
CONTROLLER_NAMESPACE="default" go run -ldflags "${LDFLAGS}" ./cmd/rcm/main.go

# If you wish to build the manager image targeting other platforms you can use the --platform flag.
# (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.
Expand Down

0 comments on commit 0c1ecba

Please sign in to comment.