| 1 |
### Makefile for kvproto |
| 2 |
|
| 3 |
CURDIR := $(shell pwd) |
| 4 |
|
| 5 |
export PATH := $(CURDIR)/bin/:$(PATH) |
| 6 |
|
| 7 |
all: go rust c++ |
| 8 |
|
| 9 |
init: |
| 10 |
mkdir -p $(CURDIR)/bin |
| 11 |
check: init |
| 12 |
$(CURDIR)/scripts/check.sh |
| 13 |
go: check |
| 14 |
# Standalone GOPATH |
| 15 |
$(CURDIR)/scripts/generate_go.sh |
| 16 |
GO111MODULE=on go mod tidy |
| 17 |
GO111MODULE=on go build ./pkg/... |
| 18 |
|
| 19 |
rust: init |
| 20 |
cargo check && \ |
| 21 |
cargo check --no-default-features --features prost-codec |
| 22 |
|
| 23 |
c++: check |
| 24 |
mkdir -p kvprotobuild && cd kvprotobuild && cmake ../cpp -DCMAKE_PREFIX_PATH=$$GRPC_INSTALL_PATH && make |
| 25 |
|
| 26 |
.PHONY: all |