Skip to content

Makefile: fix build/% rule#3371

Merged
joelanford merged 1 commit intooperator-framework:masterfrom
joelanford:build-fix
Jul 9, 2020
Merged

Makefile: fix build/% rule#3371
joelanford merged 1 commit intooperator-framework:masterfrom
joelanford:build-fix

Conversation

@joelanford
Copy link
Copy Markdown
Member

Description of the change:
Parse package name out of binary build/% target.

Motivation for the change:
Simplify build target and don't stomp out build/%.asc target.

Copy link
Copy Markdown
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2020
@openshift-ci-robot
Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2020
Copy link
Copy Markdown
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally 👍
/lgtm /approve

Just a nit we replaced all / for "-" so I think we should keep the same standard.

Comment thread Makefile

build/helm-%: $(SOURCES) ## Build the helm-operator binary
$(Q)$(GOARGS) go build $(GO_BUILD_ARGS) -o $@ $(HELM_BUILD_PATH)
build/%: $(SOURCES) ## Build the operator-sdk binary
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would need replace it as:

Suggested change
build/%: $(SOURCES) ## Build the operator-sdk binary
build-%: $(SOURCES) ## Build the operator-sdk binary

@joelanford joelanford merged commit 7e2976f into operator-framework:master Jul 9, 2020
@joelanford joelanford deleted the build-fix branch July 9, 2020 20:10
@joelanford
Copy link
Copy Markdown
Member Author

@camilamacedo86 the build/* targets are not .PHONY targets. They actualy install files into build/*. So that's why that was not changed to a hyphen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants