The ocamldep command scans a set of OCaml source files (.ml and
.mli files) for references to external compilation units, and
outputs dependency lines in a format suitable for the make
utility. This ensures that make will compile the source files in
the correct order, and recompile those files that need to when a
source file is modified. The typical usage is: ocamldep options
*.mli *.ml > .depend where *.mli *.ml expands to all source
files in the current directory and .depend is the file that
should contain the dependencies. (See below for a typical
Makefile.) Dependencies are generated both for compiling with
the bytecode compiler ocamlc and with the native-code compiler
ocamlopt. The ocamlbuild compilation manager (see chapter 18)
provide a higher-level, more automated alternative to the
combination of make and ocamldep. The following command-line
options are recognized by ocamldep. filename: Module1 Module2
... ModuleNwhere Module1, …, ModuleN are the names of the
compilation units referenced within the f