Skip to content

Commit bdaad65

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#39552 from mikedanese/make-bzl
Automatic merge from submit-queue (batch tested with PRs 39544, 39552, 39553) make help should be bazel aware
2 parents 8a4f367 + 26c1cb8 commit bdaad65

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,32 @@ endif
471471

472472
# Non-dockerized bazel rules.
473473
.PHONY: bazel-build bazel-test
474+
475+
ifeq ($(PRINT_HELP),y)
476+
define BAZEL_BUILD_HELP_INFO
477+
# Build with bazel
478+
#
479+
# Example:
480+
# make bazel-build
481+
endef
482+
bazel-build:
483+
@echo "$$BAZEL_BUILD_HELP_INFO"
484+
else
474485
bazel-build:
475486
bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
487+
endif
476488

489+
490+
ifeq ($(PRINT_HELP),y)
491+
bazel-test:
492+
define BAZEL_TEST_HELP_INFO
493+
# Test with bazel
494+
#
495+
# Example:
496+
# make bazel-test
497+
endef
498+
@echo "$$BAZEL_TEST_HELP_INFO"
499+
else
477500
bazel-test:
478501
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
502+
endif

0 commit comments

Comments
 (0)