Skip to content

Commit

Permalink
fixed typo + added additional conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehearneRedHat committed Jun 10, 2024
1 parent a4219ad commit 9106013
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ test: clean-cov fmt vet $(GINKGO)
## install: Build and install kuadrantctl binary ($GOBIN or GOPATH/bin)
.PHONY : install
install: fmt vet
ifneq ($(VERSION),$(GIT_DIRTY))
ifneq ($(GIT_HASH),$(GIT_DIRTY))
GOBIN=$(PROJECT_PATH)/bin $(GO) install -ldflags "-X 'github.com/kuadrant/kuadrantctl/version.GitDirty=$(GIT_DIRTY)' -X 'github.com/kuadrant/kuadrantctl/version.GitHash=$(GIT_HASH)'"
else
else ifneq ($(GIT_HASH))
GOBIN=$(PROJECT_PATH)/bin $(GO) install -ldflags "-X 'github.com/kuadrant/kuadrantctl/version.GitHash=$(GIT_HASH)'"
else
GOBIN=$(PROJECT_PATH)/bin $(GO) install
endif

Expand Down

0 comments on commit 9106013

Please sign in to comment.