How to install¶
Install with opam
¶
If freeton_ocaml_sdk
is available in your opam repository, you can just call:
opam install freeton_ocaml_sdk
Build and install with dune
¶
Checkout the sources of freeton_ocaml_sdk
in a directory.
You need a switch with at least version 4.08.0
of OCaml,
you can for example create it with:
opam switch create 4.10.0
Then, you need to install all the dependencies:
opam install --deps-only .
Finally, you can build the package and install it:
eval $(opam env)
dune build
dune install
Note that a Makefile
is provided, it contains the following
targets:
build
: build the codeinstall
: install the generated filesbuild-deps
: install opam dependenciessphinx
: build sphinx documentation (from thesphinx/
directory)dev-deps
: build development dependencies, in particularocamlformat
,odoc
andmerlin
doc
: build documentation withodoc
fmt
: format the code usingocamlformat
test
: run tests