-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (33 loc) · 677 Bytes
/
Makefile
File metadata and controls
39 lines (33 loc) · 677 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
35
36
37
38
39
version := 0.1.3
release: build push
build: go python
prereq:
pip install grpcio-tools
pip install "betterproto[compiler]"
go:
protoc \
--go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
--doc_out=./doc --doc_opt=markdown,README.md \
uggly.proto
python:
mkdir python
python3 \
-m grpc_tools.protoc \
-I . \
--python_betterproto_out=python \
--grpc_python_out=python \
uggly.proto
push:
git add uggly.proto
git add python
git add README.md
git add Makefile
git add ./doc
git add uggly*.go
git tag v$(version)
git push origin v$(version)
git commit -m "update"
git push origin master