[Omake] OCamlPackage with .mli

Aleksey Nogin nogin at metaprl.org
Sun Jul 15 20:57:09 PDT 2007


Michael,

I am not very familiar with -pack - is the issue that OCamlPackage needs
to check whether the .mli target exists and if so, add a dependency on
the corresponding .cmi?

Aleksey

On 15.07.2007 17:00, Michael Furr wrote:

> 
> OCaml's -pack option allows you to include a .mli (technically, .cmi) to
> specify the interface of the resulting packed library.  However, omake
> doesn't seem to play nice in this situation.  Suppose I have:
> 
>   FILES[] = a b c
>   $(OCamlPackage result, $(FILES))
> 
> This fails because it does not try to compile the file "result.mli" and
> thus ocamlopt sees an .mli but not .cmi.
> 
> If FILES[] includes "result", then omake fails with "deadlock on
> result.o. result.o is a dependency of result.o", thus making it
> impossible to use this feature with the current OCamlProgram function.
> 
> It would be great if the OCamlPackage build rule could be updated to
> take advantage of this feature.
> 
> Cheers,
> -Mike
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
> 



More information about the Omake mailing list