aboutsummaryrefslogtreecommitdiff
path: root/examples/simple/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/Makefile')
-rw-r--r--examples/simple/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/simple/Makefile b/examples/simple/Makefile
new file mode 100644
index 0000000..ff24675
--- /dev/null
+++ b/examples/simple/Makefile
@@ -0,0 +1,9 @@
+PLUGIN = ../../generator/protoc_gen_nim
+
+all: simple
+
+simple: simple.nim simple_pb.nim
+ nim c simple.nim
+
+simple_pb.nim: simple.proto
+ protoc --plugin=protoc-gen-nim=$(PLUGIN) --nim_out=. -I. simple.proto