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 |>