META files for ocamlfind are easy to write (basically, look for META in another ocaml project that you know¹, copy and make the appropriate changes), and they will provide you with ocamlfind integration, in particular build and uninstall (using ocamlfind install
and ocamlfind remove
) . You should start with this.
¹: for example, I draw inspiration from META batteries .
The construction part of the Makefile is more complex, their numerous solutions (OCamlMakefile, OMake, ocamlbuild, simple Makefile, etc.) with various strengths and weaknesses. If you project quite simply, I would recommend ocamlbuild, which in itself takes care of a lot of dependency tracking.
You can also use Oasis , which is a relatively new tool that relies on ocamlbuild and ocamlfind and aims to provide a single configuration file for pre-assembly and various build and deployment (your program, your program libraries, if any, related data or documentation .. .). This is not a mature project (and his younger brother Oasis-DB has not yet been released), but I recommend that you try if you have time. This is a bit more complicated than META, as it does more in the end, so first creating a META is still a good step.
Finally, you said that you are not interested in Godi (Godi is a very good system, and in some cases (e.g. BSD, etc.) it is a great choice to have a good OCaml installation), but if you may still be interested in Godiva , a tool to help you create GODI packages. However, I never used it myself.
source share