summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-10-01 16:56:35 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-07 13:18:09 -0500
commit11ca9d9f43e7e741b3138a06a6c6ab34be436dd8 (patch)
tree3fd73cb940e34998666917b4cb1593d2e432eefd /Makefile
parentd356b057aa38ea088cedfe26f562b981171239fc (diff)
Add generated protobuf implementations.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..4b1b6875
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+nanopb: proto
+ python libs/nanopb/generator/nanopb_generator.py -s max_size:100 -f openxc.options gen/cpp/openxc.pb
+
+proto: openxc.proto
+ @mkdir -p gen/java
+ @mkdir -p gen/python
+ @mkdir -p gen/cpp
+ protoc -I . -I gen -ogen/cpp/openxc.pb --python_out=gen/python --java_out=gen/java $?
+
+all: nanopb proto