OS Manuals

/usr/bin/ocamldep.byte

headers for ocaml

From ocaml-dev 5.5.2-r0 (os), captured 2026-11-05 by running ocamldep.byte --help (exit 0). permalink

Usage: ocamldep.byte <options> <files>
Options are:

  -absname  Show absolute filenames in error messages
  -no-absname  Do not try to show absolute filenames in error messages (default)
  -all  Generate dependencies on all files
  -allow-approx  Fallback to a lexer-based approximation on unparsable files
  -as-map  Omit delayed dependencies for module aliases (-no-alias-deps -w -49)
  -debug-map  Dump the delayed dependency map for each map file
  -I <dir>  Add <dir> to the list of include directories
  -H <dir>  Add <dir> to the list of include directories
  -nocwd  Do not add current working directory to the list of include directories
  -impl <f>  Process <f> as a .ml file
  -intf <f>  Process <f> as a .mli file
  -keywords <version+list>  set keywords following the <version+list> spec (see ocamlc)
  -map <f>  Read <f> and propagate delayed dependencies to following files
  -ml-synonym <e>  Consider <e> as a synonym of the .ml extension
  -mli-synonym <e>  Consider <e> as a synonym of the .mli extension
  -modules  Print module dependencies in raw form (not suitable for make)
  -native  Generate dependencies for native-code only (no .cmo files)
  -bytecode  Generate dependencies for bytecode-code only (no .cmx files)
  -one-line  Output one line per file, regardless of the length
  -open <module>  Opens the module <module> before typing
  -plugin <plugin>  (no longer supported)
  -pp <cmd>  Pipe sources through preprocessor <cmd>
  -ppx <cmd>  Pipe abstract syntax trees through preprocessor <cmd>
  -shared  Generate dependencies for native plugin files (.cmxs targets)
  -slash  (Windows) Use forward slash / instead of backslash \ in file paths
  -no-slash  (Windows) Preserve any backslash \ in file paths
  -sort  Sort files according to their dependencies
  -version  Print version and exit
  -vnum  Print version number and exit
  -args <file> Read additional newline separated command line arguments
      from <file>
  -args0 <file> Read additional NUL separated command line arguments from
      <file>
  -help  Display this list of options
  --help  Display this list of options
Options (31)
OptionDescriptionSource
-absnameShow absolute filenames in error messageshelp
-no-absnameDo not try to show absolute filenames in error messages (default)help
-allGenerate dependencies on all fileshelp
-allow-approxFallback to a lexer-based approximation on unparsable fileshelp
-as-mapOmit delayed dependencies for module aliases (-no-alias-deps -w -49)help
-debug-mapDump the delayed dependency map for each map filehelp
-I dirAdd <dir> to the list of include directorieshelp
-H dirAdd <dir> to the list of include directorieshelp
-nocwdDo not add current working directory to the list of include directorieshelp
-impl fProcess <f> as a .ml filehelp
-intf fProcess <f> as a .mli filehelp
-keywords version+listset keywords following the <version+list> spec (see ocamlc)help
-map fRead <f> and propagate delayed dependencies to following fileshelp
-ml-synonym eConsider <e> as a synonym of the .ml extensionhelp
-mli-synonym eConsider <e> as a synonym of the .mli extensionhelp
-modulesPrint module dependencies in raw form (not suitable for make)help
-nativeGenerate dependencies for native-code only (no .cmo files)help
-bytecodeGenerate dependencies for bytecode-code only (no .cmx files)help
-one-lineOutput one line per file, regardless of the lengthhelp
-open moduleOpens the module <module> before typinghelp
-plugin plugin(no longer supported)help
-pp cmdPipe sources through preprocessor <cmd>help
-ppx cmdPipe abstract syntax trees through preprocessor <cmd>help
-sharedGenerate dependencies for native plugin files (.cmxs targets)help
-slash(Windows) Use forward slash / instead of backslash \ in file pathshelp
-no-slash(Windows) Preserve any backslash \ in file pathshelp
-sortSort files according to their dependencieshelp
-versionPrint version and exithelp
-vnumPrint version number and exithelp
-helpDisplay this list of optionshelp
--helpDisplay this list of optionshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.