mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
make help should be bazel aware
currently it runs bazel build and test.
This commit is contained in:
parent
4881341f8c
commit
26c1cb82e7
24
Makefile
24
Makefile
@ -471,8 +471,32 @@ endif
|
|||||||
|
|
||||||
# Non-dockerized bazel rules.
|
# Non-dockerized bazel rules.
|
||||||
.PHONY: bazel-build bazel-test
|
.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:
|
||||||
bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
|
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:
|
||||||
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
|
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user