简体   繁体   中英

OCamlbuild recursively build dependecies

I'm building a project that uses OCamlbuild as its build system. This project also requires a library, which also uses OCamlbuild. This library comes with .mlpack , _tags , and myocamlbuild.ml files. I have included the library into my project as a git submodule in the path lib/mylib starting from the project's root.

I'd like to tell OCamlbuild to recursively compile the library, as I would to with a make -C lib/mylib in a Makefile .

How can I achieve that?

Thanks.

An answer is described in Working on dependent projects with OCamlbuild .
Basically, add <lib/mylib>: include to _tags and import the library myocamlbuild.ml . It does seem a bit wobbly.

Or use Dune .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM