0

I've tried to create a rule similar to the minimal example:

: ../library/something local |> !compile |> ./something_else

This works, but I would like to write something like:

: $(PROJ_ROOT)/library/something local |> !compile |> ./something_else

Where the PROJ_ROOT variable is the same, even if I add folder depth.
Does tup support this?

4

1 回答 1

0

您需要使用将根目录传递给每个子目录 include_rules

在您的顶级 Tupfile 中,您指定TOP = $(TUP_CWD)
In any child you write include_rules。您现在可以访问以获取由等$(TOP)
组成的相对路径。../../

于 2015-08-04T17:16:20.397 回答