Skip to content

Commit

Permalink
Merge pull request kubernetes#39552 from mikedanese/make-bzl
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 39544, 39552, 39553)

make help should be bazel aware
  • Loading branch information
Kubernetes Submit Queue authored Jan 7, 2017
2 parents 8a4f367 + 26c1cb8 commit bdaad65
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,32 @@ endif

# Non-dockerized bazel rules.
.PHONY: bazel-build bazel-test

ifeq ($(PRINT_HELP),y)
define BAZEL_BUILD_HELP_INFO
# Build with bazel
#
# Example:
# make bazel-build
endef
bazel-build:
@echo "$$BAZEL_BUILD_HELP_INFO"
else
bazel-build:
bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
endif


ifeq ($(PRINT_HELP),y)
bazel-test:
define BAZEL_TEST_HELP_INFO
# Test with bazel
#
# Example:
# make bazel-test
endef
@echo "$$BAZEL_TEST_HELP_INFO"
else
bazel-test:
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
endif

0 comments on commit bdaad65

Please sign in to comment.