aboutsummaryrefslogtreecommitdiff
path: root/examples/multiservice/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multiservice/Makefile')
-rw-r--r--examples/multiservice/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/multiservice/Makefile b/examples/multiservice/Makefile
new file mode 100644
index 0000000..5def82b
--- /dev/null
+++ b/examples/multiservice/Makefile
@@ -0,0 +1,10 @@
+all: server client
+
+server: server.nim fooservice_pb.nim fooservice_twirp.nim barservice_pb.nim barservice_twirp.nim
+ nim c server.nim
+
+client: client.nim fooservice_pb.nim fooservice_twirp.nim barservice_pb.nim barservice_twirp.nim
+ nim c client.nim
+
+%_pb.nim %_twirp.nim: %.proto
+ ../../nimtwirp/nimtwirp_build -I:. --out:. $^