Separation Generator to a dedicated repo
[apps/low-level-can-service.git] / libs / openxc-message-format / Makefile
diff --git a/libs/openxc-message-format/Makefile b/libs/openxc-message-format/Makefile
new file mode 100644 (file)
index 0000000..7b968e6
--- /dev/null
@@ -0,0 +1,11 @@
+nanopb: proto
+       make -C libs/nanopb/generator/proto
+       python libs/nanopb/generator/nanopb_generator.py gen/cpp/openxc.pb -f openxc.options
+
+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