diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-17 21:56:05 +0100 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-17 21:56:05 +0100 |
| commit | 55f3a493871306ac220071574e2a5897851bef54 (patch) | |
| tree | 509140ba0ccb8c675520368f08d578d33c90f7a7 /examples/simple/Makefile | |
| parent | 55811e0f5467257a7f86fd474e4c6e234c2efa7b (diff) | |
| download | nimpb-55f3a493871306ac220071574e2a5897851bef54.tar.gz nimpb-55f3a493871306ac220071574e2a5897851bef54.zip | |
Update examples
Diffstat (limited to 'examples/simple/Makefile')
| -rw-r--r-- | examples/simple/Makefile | 8 |
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=. $< |
