aboutsummaryrefslogtreecommitdiff
path: root/examples/simple/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/Makefile')
-rw-r--r--examples/simple/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/simple/Makefile b/examples/simple/Makefile
index ff24675..cec07f3 100644
--- a/examples/simple/Makefile
+++ b/examples/simple/Makefile
@@ -1,9 +1,7 @@
-PLUGIN = ../../generator/protoc_gen_nim
-
all: simple
simple: simple.nim simple_pb.nim
- nim c simple.nim
+ nim c $<
-simple_pb.nim: simple.proto
- protoc --plugin=protoc-gen-nim=$(PLUGIN) --nim_out=. -I. simple.proto
+%_pb.nim: %.proto
+ nimpb_build -I. --out=. $<