Skip to content

Commit

Permalink
Fix up build variables in makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Jan 5, 2024
1 parent a9e707f commit b28e8d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,10 @@ endif
##@ Build

DATE ?= $(shell date)
VERSION ?= $(VERSION)
COMMIT ?= $(shell git rev-parse --short HEAD)


build: generate fmt vet ## Build manager binary.
go build --ldflags "-X \"main.version=$(VERSION)\" -X \"main.date=$(DATE)\" -X \"main.commit=$(COMMIT)\"" -o bin/manager main.go
go build --ldflags "-X \"main.version=${VERSION}\" -X \"main.date=${DATE}\" -X \"main.commit=${COMMIT}\"" -o bin/manager main.go

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

0 comments on commit b28e8d1

Please sign in to comment.