mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

The current Makefile doesn't allow the compilation of the tools directory. This commit creates a build library file, updates the Makefile and a top level script fod building tools. To build the tools, you can run make build_tools. As before, you can run make build to build etcd binaries.
13 lines
292 B
Bash
Executable File
13 lines
292 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This scripts build the etcd binaries
|
|
# To build the tools, run `build_tools.sh`
|
|
|
|
source ./scripts/test_lib.sh
|
|
source ./scripts/build_lib.sh
|
|
|
|
# only build when called directly, not sourced
|
|
if echo "$0" | grep -E "build(.sh)?$" >/dev/null; then
|
|
run_build etcd_build
|
|
fi
|