summaryrefslogtreecommitdiffstats
path: root/generator/Makefile
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-08 19:55:05 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-08 19:55:05 +0300
commit4821e7f457ebd28aabcbdea726ebce11265f402f (patch)
tree8e13daa6dde9e57d65334e0231659ddfd5a93a9b /generator/Makefile
parentd7f3a74388b4825d2c980c53d0a740ddfd0e4770 (diff)
Add support for running the nanopb generator as protoc plugin.
Will be used to implement issue 47. For now, symlink nanopb_generator.py as protoc-gen-nanopb and use protoc --nanopb_out=. to call it.
Diffstat (limited to 'generator/Makefile')
-rw-r--r--generator/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/Makefile b/generator/Makefile
index 161ef387..f2b02a95 100644
--- a/generator/Makefile
+++ b/generator/Makefile
@@ -1,2 +1,5 @@
nanopb_pb2.py: nanopb.proto
protoc --python_out=. -I /usr/include -I . nanopb.proto
+
+plugin_pb2.py: plugin.proto
+ protoc --python_out=. -I /usr/include -I . plugin.proto