22# with Go source code. If you know what GOPATH is then you probably
33# don't need to bother with make.
44
5- .PHONY : geth android ios geth-cross evm all test clean rocksdb
5+ .PHONY : geth android ios geth-cross evm all test clean rocksdb etcd
66.PHONY : geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
77.PHONY : geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
88.PHONY : geth-darwin geth-darwin-386 geth-darwin-amd64
@@ -33,7 +33,7 @@ ROCKSDB_DIR=$(shell pwd)/rocksdb
3333ROCKSDB_TAG =-tags rocksdb
3434endif
3535
36- metadium : gmet logrot
36+ metadium : etcd gmet logrot
3737 @[ -d build/conf ] || mkdir -p build/conf
3838 @cp -p metadium/scripts/gmet.sh metadium/scripts/solc.sh build/bin/
3939 @cp -p metadium/scripts/config.json.example \
@@ -44,7 +44,7 @@ metadium: gmet logrot
4444 @ (cd build; tar cfz metadium.tar.gz bin conf)
4545 @echo " Done building build/metadium.tar.gz"
4646
47- gmet : rocksdb metadium/governance_abi.go
47+ gmet : etcd rocksdb metadium/governance_abi.go
4848ifeq ($(USE_ROCKSDB ) , NO)
4949 $(GORUN) build/ci.go install $(ROCKSDB_TAG) ./cmd/gmet
5050else
@@ -206,7 +206,7 @@ geth-windows-amd64:
206206 @echo " Windows amd64 cross compilation done:"
207207 @ls -ld $(GOBIN ) /geth-windows-* | grep amd64
208208
209- gmet-linux :
209+ gmet-linux : etcd
210210 @docker --version > /dev/null 2>&1 ; \
211211 if [ ! $$ ? = 0 ]; then \
212212 echo " Docker not found." ; \
@@ -226,6 +226,11 @@ rocksdb:
226226 cd $(ROCKSDB_DIR ) && make -j8 static_lib;
227227endif
228228
229+ etcd :
230+ @if [ ! -e etcd/.git ]; then \
231+ git submodule update --init etcd; \
232+ fi
233+
229234AWK_CODE =' \
230235BEGIN { print "package metadium"; bin = 0; name = ""; abi = ""; } \
231236/^{/ { bin = 1; abi = ""; name = ""; } \
0 commit comments