Sub-repos

Sub-repos are repos that contain repos, i.e. some Lmakefile.py are present in sub-dirs.

In that situation, it is reasonable to assume that the Lmakefile.py are made to handle building files underneath it.

To support this situation, open-lmake allow you to simply mention such sub-repos, so that:

  • Targets only match within the sub-repo (and escape is possibly by setting the top flag to the target to provide global rules).
  • The same applies to deps.
  • cmd is run from this sub-repo, i.e. its cwd is set accordingly.
  • The priority of deeper rules are matched first, so that builds in a sub-repo is not pertubated by rules of englobing repo.