forked from drpcorg/nodecore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (34 loc) · 1.06 KB
/
Makefile
File metadata and controls
40 lines (34 loc) · 1.06 KB
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
35
36
37
38
39
40
.PHONY: dshackle-proto-gen
dshackle-proto-gen:
mkdir -p pkg/dshackle
protoc -I ./emerald-grpc/proto \
--proto_path=emerald-grpc/proto \
--go_out=pkg/dshackle \
--go-grpc_out=pkg/dshackle \
--go_opt=paths=source_relative \
--go_opt=Mblockchain.proto=github.com/drpcorg/nodecore/pkg/dshackle \
--go_opt=Mcommon.proto=github.com/drpcorg/nodecore/pkg/dshackle \
--go_opt=Mauth.proto=github.com/drpcorg/nodecore/pkg/dshackle \
--go-grpc_opt=paths=source_relative \
--go-grpc_opt=Mblockchain.proto=github.com/drpcorg/nodecore/pkg/dshackle \
--go-grpc_opt=Mcommon.proto=github.com/drpcorg/nodecore/pkg/dshackle \
--go-grpc_opt=Mauth.proto=github.com/drpcorg/nodecore/pkg/dshackle \
blockchain.proto common.proto auth.proto
.PHONY: generate-networks
generate-networks:
go run cmd/chains/init_chains.go
.PHONY: lint
lint:
golangci-lint run ./...
.PHONY: test
test:
go test -race -p 8 ./...
.PHONY: build
build: generate-networks
go build -o $(PWD)/nodecore cmd/nodecore/main.go
.PHONY: setup
setup:
go mod tidy
.PHONY: run
run:
go run ./cmd/nodecore/main.go