From 1234f97f205e8de78237e0adb62d1d96780a715a Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 11 Dec 2022 20:16:02 -0600 Subject: [PATCH] Tup: unify protocols group --- Tuprules.tup | 1 + src/syndicate/protocols/Tupfile | 2 +- tests/Tupfile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Tuprules.tup diff --git a/Tuprules.tup b/Tuprules.tup new file mode 100644 index 0000000..73025f7 --- /dev/null +++ b/Tuprules.tup @@ -0,0 +1 @@ +PROTOCOLS = $(TUP_CWD)/ diff --git a/src/syndicate/protocols/Tupfile b/src/syndicate/protocols/Tupfile index 1dfa461..7d6104b 100644 --- a/src/syndicate/protocols/Tupfile +++ b/src/syndicate/protocols/Tupfile @@ -17,6 +17,6 @@ modules += worker.nim : ../../../../syndicate-protocols/schema-bundle.bin \ |> !preserves_schema_nim \ - |> $(modules) | ../../../ {generated} + |> $(modules) | $(PROTOCOLS) {generated} : foreach {generated} | {generated} |> !nim_run |> diff --git a/tests/Tupfile b/tests/Tupfile index 77cf1bf..7f65d3e 100644 --- a/tests/Tupfile +++ b/tests/Tupfile @@ -1,2 +1,2 @@ include_rules -: test_simpleChatProtocol.nim | ../ |> !nim_run |> +: test_simpleChatProtocol.nim | $(PROTOCOLS) |> !nim_run |>