summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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