Skip to content

Commit

Permalink
Updates Makefile to allow override of PKG_CONFIG
Browse files Browse the repository at this point in the history
This change updates the makefile to allow an override of the
$(PKG_CONFIG) target.

This allows for overriding of the generated ldflags from
`hack/pkg-config.sh`.
  • Loading branch information
theobarberbany authored and k8s-infra-cherrypick-robot committed Mar 7, 2024
1 parent 67000a3 commit 5fdab33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ clean: ## Cleanup local builds.
rm -rf $(BIN_DIR) $(PKG_CONFIG) $(TEST_RESULTS_DIR)

$(PKG_CONFIG):
ifeq ($(OVERRIDE_PKG_CONFIG), true)
@echo "Overriding pkg-config script. Use an alternate method to generate .pkg_config"
else
ENABLE_GIT_COMMAND=$(ENABLE_GIT_COMMAND) hack/pkg-config.sh > $@
endif

## --------------------------------------
##@ Release
Expand Down

0 comments on commit 5fdab33

Please sign in to comment.