-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 736 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 736 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
ALL_PROTO_FILES=$(shell find . -name *.proto)
_protoc_cmd = @docker run -v `pwd`:/proto-sources:ro -w /proto-sources --rm brennovich/protobuf-tools:2.3.0
clean:
@echo "Cleaning Examples..."
rm -rf examples/compiled examples/resources/
validate/python:
@echo "Building for python..."
$(_protoc_cmd) protoc --python_out=/tmp ${ALL_PROTO_FILES}
validate/java:
@echo "Building for java..."
$(_protoc_cmd) protoc --java_out=/tmp ${ALL_PROTO_FILES}
validate/go:
@echo "Building for go..."
$(_protoc_cmd) protowrap -I . --go_out=/tmp ${ALL_PROTO_FILES}
validate/js:
@echo "Building for javascript..."
$(_protoc_cmd) protoc --js_out=/tmp ${ALL_PROTO_FILES}
validate: clean validate/go validate/java validate/python validate/js