ocamldsort
ocamldsort is a dependecy sorter for OCaml source files.
The ocamldsort command scans a set of Objective Caml source files (.ml and .mli files), sorts them according to their dependencies and prints the sorted files in order to link their corresponding .cmo and .cmi files.
ocamldsort can be used to compile and link simple projects with one command, such as:
ocamlc $(ocamldsort *.ml)
if your project doesn't contain .mli files or:
ocamlc -c $(ocamldsort -mli *.ml *.mli) && ocamlc $(ocamldsort -byte *.ml)
if it contains .mli files.
However for larger projects where separate compilation is desirable, ocamldsort can also be used from within a makefile. See the README file for a typical makefile.
- README file
- Version 0.15.0 (you need this version with ocaml 3.12):
- Old versions :