Usage /usr/bin/ocamlbuild [options] <target> -version Display the version --version same as -version -vnum Display the version number --vnum same as -vnum -quiet Make as quiet as possible -verbose <level> Set the verbosity level on a scale from 0 to 8 (included) -documentation Show rules and flags -log <file> Set log file -no-log No log file -clean Remove build directory and other files, then exit -r Traverse directories by default (true: traverse) -I <path> Add to include directories -Is <path,...> (same as above, but accepts a (comma or blank)-separated list) -X <path> Directory to ignore -Xs <path,...> (idem) -lib <flag> Link to this ocaml library -libs <flag,...> (idem) -mod <module> Link to this ocaml module -mods <module,...> (idem) -pkg <package> Link to this ocaml findlib package -pkgs <package,...> (idem) -package <package> (idem) -syntax <syntax> Specify syntax using ocamlfind -lflag <flag> Add to ocamlc link flags -lflags <flag,...> (idem) -cflag <flag> Add to ocamlc compile flags -cflags <flag,...> (idem) -docflag <flag> Add to ocamldoc flags -docflags <flag,...> (idem) -yaccflag <flag> Add to ocamlyacc flags -yaccflags <flag,...> (idem) -lexflag <flag> Add to ocamllex flags -lexflags <flag,...> (idem) -ppflag <flag> Add to ocaml preprocessing flags -pp <flag,...> (idem) -tag <tag> Add to default tags -tags <tag,...> (idem) -plugin-tag <tag> Use this tag when compiling the myocamlbuild.ml plugin -plugin-tags <tag,...> (idem) -tag-line <tag> Use this line of tags (as in _tags) -show-tags <path> Show tags that applies on that pathname -ignore <module,...> Don't try to build these modules -no-links Don't make links of produced final targets -no-skip Don't skip modules that are requested by ocamldep but cannot be built -no-hygiene Don't apply sanity-check rules -no-plugin Don't build myocamlbuild.ml -no-stdlib Don't ignore stdlib modules -dont-catch-errors Don't catch and display exceptions (useful to display the call stack) -just-plugin Just build myocamlbuild.ml -byte-plugin Don't use a native plugin but bytecode -plugin-option Use the option only when plugin is run -sanitization-script Change the file name for the generated sanitization script -no-sanitize Do not generate sanitization script -nothing-should-be-rebuilt Fail if something needs to be rebuilt -classic-display Display executed commands the old-fashioned way -use-menhir Use menhir instead of ocamlyacc -use-jocaml Use jocaml compilers instead of ocaml ones -use-ocamlfind Use the 'ocamlfind' wrapper instead of using Findlib directly to determine command-line arguments. Use -no-ocamlfind to disable. Implies -plugin-use-ocamlfind. -no-ocamlfind Don't use ocamlfind. Implies -plugin-no-ocamlfind. -plugin-use-ocamlfind Use the 'ocamlfind' wrapper for building myocamlbuild.ml -plugin-no-ocamlfind Don't use ocamlfind for building myocamlbuild.ml -toolchain <toolchain> Set the Findlib toolchain to use. The default toolchain is always used for building myocamlbuild.ml. -j <N> Allow N jobs at once (0 for unlimited) -build-dir <path> Set build directory (implies no-links) -install-lib-dir <path> Set the install library directory -install-bin-dir <path> Set the install binary directory -where Display the install library directory -which <command> Display path to the tool command -ocamlc <command> Set the OCaml bytecode compiler -plugin-ocamlc <command> Set the OCaml bytecode compiler used when building myocamlbuild.ml (only) -ocamlopt <command> Set the OCaml native compiler -plugin-ocamlopt <command> Set the OCaml native compiler used when building myocamlbuild.ml (only) -ocamldep <command> Set the OCaml dependency tool -ocamldoc <command> Set the OCaml documentation generator -ocamlyacc <command> Set the ocamlyacc tool -menhir <command> Set the menhir tool (use it after -use-menhir) -ocamllex <command> Set the ocamllex tool -ocamlmklib <command> Set the ocamlmklib tool -ocamlmktop <command> Set the ocamlmktop tool -ocamlrun <command> Set the ocamlrun tool -- Stop argument processing, remaining arguments are given to the user program -help Display this list of options --help Display this list of options
Options (82)
| Option | Description | Source |
|---|---|---|
-version | Display the version | help + man |
--version | same as -version | help + man |
-vnum | Display the version number | help + man |
--vnum | same as -vnum | help + man |
-quiet | Make as quiet as possible | help + man |
-verbose level | Set the verbosity level on a scale from 0 to 8 (included) | help + man |
-documentation | Show rules and flags | help + man |
-log file | Set log file | help + man |
-no-log | No log file | help + man |
-clean | Remove build directory and other files, then exit | help + man |
-r | Traverse directories by default (true: traverse) | help + man |
-I path | Add to include directories | help + man |
-Is path | (same as above, but accepts a (comma or blank)-separated list) | help + man |
-X path | Directory to ignore | help + man |
-Xs path | (idem) | help + man |
-lib flag | Link to this ocaml library | help + man |
-libs flag | (idem) | help + man |
-mod module | Link to this ocaml module | help + man |
-mods module | (idem) | help + man |
-pkg package | Link to this ocaml findlib package | help + man |
-pkgs package | (idem) | help + man |
-package package | (idem) | help + man |
-syntax syntax | Specify syntax using ocamlfind | help + man |
-lflag flag | Add to ocamlc link flags | help + man |
-lflags flag | (idem) | help + man |
-cflag flag | Add to ocamlc compile flags | help + man |
-cflags flag | (idem) | help + man |
-docflag flag | Add to ocamldoc flags | help + man |
-docflags flag | (idem) | help + man |
-yaccflag flag | Add to ocamlyacc flags | help + man |
-yaccflags flag | (idem) | help + man |
-lexflag flag | Add to ocamllex flags | help + man |
-lexflags flag | (idem) | help + man |
-ppflag flag | Add to ocaml preprocessing flags | help + man |
-pp flag | (idem) | help + man |
-tag tag | Add to default tags | help + man |
-tags tag | (idem) | help + man |
-plugin-tag tag | Use this tag when compiling the myocamlbuild.ml plugin | help + man |
-plugin-tags tag | (idem) | help + man |
-tag-line tag | Use this line of tags (as in _tags) | help + man |
-show-tags path | Show tags that applies on that pathname | help + man |
-ignore module | Don't try to build these modules | help + man |
-no-links | Don't make links of produced final targets | help + man |
-no-skip | Don't skip modules that are requested by ocamldep but cannot be built | help + man |
-no-hygiene | Don't apply sanity-check rules | help + man |
-no-plugin | Don't build myocamlbuild.ml | help + man |
-no-stdlib | Don't ignore stdlib modules | help + man |
-dont-catch-errors | Don't catch and display exceptions (useful to display the call stack) | help + man |
-just-plugin | Just build myocamlbuild.ml | help + man |
-byte-plugin | Don't use a native plugin but bytecode | help + man |
-plugin-option | Use the option only when plugin is run | help + man |
-sanitization-script | Change the file name for the generated sanitization script | help + man |
-no-sanitize | Do not generate sanitization script | help + man |
-nothing-should-be-rebuilt | Fail if something needs to be rebuilt | help + man |
-classic-display | Display executed commands the old-fashioned way | help + man |
-use-menhir | Use menhir instead of ocamlyacc | help + man |
-use-jocaml | Use jocaml compilers instead of ocaml ones | help + man |
-use-ocamlfind | Use the 'ocamlfind' wrapper instead of using Findlib directly to determine command-line arguments. | help + man |
-no-ocamlfind | Don't use ocamlfind. | help + man |
-plugin-use-ocamlfind | Use the 'ocamlfind' wrapper for building myocamlbuild.ml | help + man |
-plugin-no-ocamlfind | Don't use ocamlfind for building myocamlbuild.ml | help + man |
-toolchain toolchain | Set the Findlib toolchain to use. | help + man |
-j N | Allow N jobs at once (0 for unlimited) | help + man |
-build-dir path | Set build directory (implies no-links) | help + man |
-install-lib-dir path | Set the install library directory | help + man |
-install-bin-dir path | Set the install binary directory | help + man |
-where | Display the install library directory | help + man |
-which command | Display path to the tool command | help + man |
-ocamlc command | Set the OCaml bytecode compiler | help + man |
-plugin-ocamlc command | Set the OCaml bytecode compiler used when building myocamlbuild.ml (only) | help + man |
-ocamlopt command | Set the OCaml native compiler | help + man |
-plugin-ocamlopt command | Set the OCaml native compiler used when building myocamlbuild.ml (only) | help + man |
-ocamldep command | Set the OCaml dependency tool | help + man |
-ocamldoc command | Set the OCaml documentation generator | help + man |
-ocamlyacc command | Set the ocamlyacc tool | help + man |
-menhir command | Set the menhir tool (use it after -use-menhir) | help + man |
-ocamllex command | Set the ocamllex tool | help + man |
-ocamlmklib command | Set the ocamlmklib tool | help + man |
-ocamlmktop command | Set the ocamlmktop tool | help + man |
-ocamlrun command | Set the ocamlrun tool | help + man |
-help | Display this list of options | help + man |
--help | Display this list of options | help + man |