From 26c1cb82e7ffe6ddc2cf82aad9592e1b59924eec Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Fri, 6 Jan 2017 14:55:59 -0800 Subject: [PATCH] make help should be bazel aware currently it runs bazel build and test. --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Makefile b/Makefile index 2c737091da..b3c688ac51 100644 --- a/Makefile +++ b/Makefile @@ -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