Installation

Install from binaries

We try to provide portable Linux executables on x86_64. Such binaries are available from the Release page at:

https://github.com/OCamlPro/autofonce/releases

To use them, you can use for example:

wget https://github.com/OCamlPro/autofonce/releases/download/v0.1.0/autofonce-v0.6.linux-x86_64.bin
chmod +x autofonce-v0.6.linux-x86_64.bin
sudo mv autofonce-v0.6.linux-x86_64.bin /usr/local/bin/autofonce
autofonce --help

Build and install with dune

Checkout the sources of autofonce in a directory.

You need a switch with at least version 4.10.0 of OCaml, you can for example create it with:

opam switch create 4.13.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 code

  • install: install the generated files

  • build-deps: install opam dependencies

  • sphinx: build sphinx documentation (from the sphinx/ directory)

  • dev-deps: build development dependencies, in particular ocamlformat, odoc and merlin

  • doc: build documentation with odoc

  • fmt: format the code using ocamlformat

  • test: run tests