-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 976 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# golang1.9 or latest
CHAIN33=github.com/33cn/chain33
CHAIN33_PATH=vendor/${CHAIN33}
plugin=github.com/33cn/plugin
PKG_LIST_VET := `go list ./... | grep -v "vendor" | grep -v plugin/dapp/evm/executor/vm/common/crypto/bn256`
PKG_LIST_INEFFASSIGN= `go list -f {{.Dir}} ./... | grep -v "vendor"`
.PHONY: default build
default: build
all: vendor build
build:
go build -v -i -o build/aBcd
go build -v -i -o build/aBcdm-cli github.com/aBitcoinDiamond/cmd/btcctl
go build -v -i -o build/aBcds-cli github.com/aBitcoinDiamond/slave/cli
@cp slaveChain.toml build
autotest: ## build autotest binary
@cd build/autotest && bash ./build.sh && cd ../../
@if [ -n "$(dapp)" ]; then \
rm -rf build/autotest/local \
&& cp -r $(CHAIN33_PATH)/build/autotest/local $(CHAIN33_PATH)/build/autotest/*.sh build/autotest/ \
&& cd build/autotest && bash ./copy-autotest.sh local && cd local && bash ./local-autotest.sh $(dapp) && cd ../../../; fi
clean:
@rm -rf build
@go clean