Skip to content

Commit 67d84fd

Browse files
committed
Makefile: Add a .PHONY target for the opm build target (#813)
Update the root Makefile and add a .PHONY target for the bin/opm target. This is needed to as the bin/opm target outputs the opm executable in the same name as the target, which is problematic in the case there's an existing ./bin/opm file present and a re-build is necessary. Signed-off-by: timflannagan <[email protected]> Upstream-repository: operator-registry Upstream-commit: 3e01e6cccf8ed1a26ae2ee0c922250854949db5e
1 parent 6b326f9 commit 67d84fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

staging/operator-registry/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ all: clean test build
3737
$(CMDS):
3838
$(GO) build $(extra_flags) $(TAGS) -o $@ ./cmd/$(notdir $@)
3939

40+
.PHONY: $(OPM)
4041
$(OPM): opm_version_flags=-ldflags "-X '$(PKG)/cmd/opm/version.gitCommit=$(GIT_COMMIT)' -X '$(PKG)/cmd/opm/version.opmVersion=$(OPM_VERSION)' -X '$(PKG)/cmd/opm/version.buildDate=$(BUILD_DATE)'"
4142
$(OPM):
4243
$(GO) build $(opm_version_flags) $(extra_flags) $(TAGS) -o $@ ./cmd/$(notdir $@)

0 commit comments

Comments
 (0)