forked from annchain/annchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
14 lines (13 loc) · 778 Bytes
/
Makefile
File metadata and controls
14 lines (13 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.PHONY: ann anntool all
all: ann anntool
ann:
go build -ldflags "-X github.com/annchain/annchain/chain/version.commitVer=`git rev-parse HEAD`" -o ./build/ann ./chain
anntool:
go build -ldflags "-X github.com/annchain/annchain/client/main.version=`git rev-parse HEAD`" -o ./build/anntool ./client
test:
go test ./tools/state
proto:
protoc --proto_path=$(GOPATH)/src --proto_path=chain/app/remote --go_out=plugins=grpc:chain/app/remote chain/app/remote/*.proto
protoc --proto_path=$(GOPATH)/src --proto_path=example/types --go_out=plugins=grpc:example/types example/types/*.proto
#protoc --proto_path=$(GOPATH)/src --proto_path=chain/node/protos --gofast_out=plugins=grpc:chain/node/protos chain/node/protos/*.proto
protoc --proto_path=types --go_out=types types/*.proto