I'm using ocamlbuild
to compile an OCaml library via a mylib.mllib
file that lists the modules comprising the library. Afterwards I want to install the library files using ocamlfind
. Unlike binary files built with ocamlbuild
, all the library files are in the _build
directory. Is the correct way to install them using something like
ocamlfind install META _build/a.cma _build/a.cmxa ...
or is there some better integration between ocamlbuild
and ocamlfind
? In particular, I noticed the -install-lib-dir
flag of ocamlbuild
but can't find documentation about its purpose.
I'm aware of oasis
but right now would like to solve the problem within a Makefile and an install
target. All of this is in the context of using the opam
library manager but it should not matter for the discussion.