Skip to content

Commit

Permalink
Add build-debug target to Makefile (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkondr authored Feb 18, 2025
1 parent b1029e3 commit 7b2ae7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ test-core: build local-env-up ## Run integration tests against kind cluster
build: manifests generate fmt vet ## Build manager binary.
go build -o bin/manager cmd/main.go

build-debug: manifests generate fmt vet ## Build manager binary with debug symbols.
CGO_ENABLED=0 go build -gcflags 'all=-N -l' -o bin/manager cmd/main.go

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
go run ./cmd/main.go
Expand Down

0 comments on commit 7b2ae7d

Please sign in to comment.