[makefile] Add a BUILD_TARGET variable.
@@ -152,8 +152,10 @@ init:
# Files and directories generated by python disttools.
DISTTOOLS_OUTS := dist build compiler_gym.egg-info
+BUILD_TARGET ?= //:package
+
bazel-build:
- $(BAZEL) $(BAZEL_OPTS) build $(BAZEL_BUILD_OPTS) //:package
+ $(BAZEL) $(BAZEL_OPTS) build $(BAZEL_BUILD_OPTS) $(BUILD_TARGET)
bdist_wheel: bazel-build
$(PYTHON) setup.py bdist_wheel
@@ -178,6 +180,7 @@ all: docs bdist_wheel bdist_wheel-linux
.PHONY: bazel-build bdist_wheel bdist_wheel-linux bdist_wheel-linux-shell bdist_wheel-linux-test
+
#################
# Documentation #
#################
