Otags generates TAGS files suitable for emacs and vi/vim from OCaml sources. Otags employs camlp4 for parsing. Therefore otags can easily handle files that use camlp4 syntax extensions. Otags reloaded is a complete rewrite for the new camlp4 that is shipped with OCaml since version 3.10.
Note that OCaml 3.12.0 contains a bug that makes otags almost unusable. The configure script will therefore refuse to work when it detects 3.12.0 (but you can override that).Previous versions: 4.00.2, 4.00.1, 3.12.5, 3.12.4, 3.12.3, 3.12.2, 3.12.1, 3.11.3, 3.11.2, 3.11.1
Optionally use --prefix, --bindir or --mandir if you don't like the default installation directories.
You might need to become superuser before make install.
otags ocaml.ml -pa rq quotation.mlto generate an Emacs TAGS table for ocaml.ml in standard syntax and quotation.ml with (revised) quotations. Note that otags switches the parsing engine between the two files.
Add option -r to recurse into subdirectories and option -vi to generate vi and vim tags tables. For more details and more examples consult the man page.
Around 2005 I released a few versions for OCaml 3.09. All these old otags versions require the original camlp4 from Daniel de Rauglaudre, which is now available as camlp5. My latest release for the old camlp4 was otags 3.09.3.3 for OCaml 3.09.3. The debian maintainers developed some patches to make this version compile with later OCaml versions and camlp5.