Build release tarballs in bazel and add make bazel-release rule

This commit is contained in:
Jeff Grafton
2017-01-13 14:47:06 -08:00
parent 14dd0d3bef
commit bc4b6ac397
17 changed files with 521 additions and 26 deletions

View File

@@ -470,7 +470,7 @@ help:
endif
# Non-dockerized bazel rules.
.PHONY: bazel-build bazel-test
.PHONY: bazel-build bazel-test bazel-release
ifeq ($(PRINT_HELP),y)
define BAZEL_BUILD_HELP_INFO
@@ -500,3 +500,17 @@ else
bazel-test:
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
endif
ifeq ($(PRINT_HELP),y)
define BAZEL_BUILD_HELP_INFO
# Build release tars with bazel
#
# Example:
# make bazel-release
endef
bazel-release:
@echo "$$BAZEL_BUILD_HELP_INFO"
else
bazel-release:
bazel build //build/release-tars
endif