-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
23 lines (20 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
test:
go clean -cache -testcache
go list ./... | grep examples | grep -v transaction-builder | xargs go build
go list ./... | grep -v /examples/ | xargs go test
cover:
mkdir -p .tmp
go test -covermode=count -coverprofile=.tmp/count.out ./...
go tool cover -html=.tmp/count.out
gen:
cd diem && cargo build -p transaction-builder-generator && target/debug/generate-transaction-builders \
--language go \
--module-name stdlib \
--diem-package-name github.com/diem/client-sdk-go \
--with-diem-types "testsuite/generate-format/tests/staged/diem.yaml" \
--target-source-dir ".." \
"language/diem-framework/releases/legacy" \
"language/diem-framework/releases/artifacts/current"
protoc:
# protoc --go_out=. --go_opt=paths=source_relative ./diemjsonrpctypes/jsonrpc.proto
protoc -Idiem/json-rpc/types/src/proto --go_out=./diemjsonrpctypes --go_opt=paths=source_relative jsonrpc.proto