From 44a15bcd244b79255e8c8f4057aeddf45246333d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bobot?= Date: Tue, 18 Jul 2017 18:18:52 +0200 Subject: [PATCH] Fix documentation for `--libdir` --- doc/usage.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/usage.rst b/doc/usage.rst index d597857a..635c1b05 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -248,7 +248,7 @@ to be able to use ``jbuilder install``. Destination ----------- -The place where the build artifacts (except ocaml libraries) are copied, usually referred as +The place where the build artifacts (except library files) are copied, usually referred as **prefix**, is determined as follow for a given build context: #. if an explicit ``--prefix `` argument is passed, use this path @@ -256,10 +256,11 @@ The place where the build artifacts (except ocaml libraries) are copied, usually prefix`` #. otherwise, take the parent of the directory where ``ocamlc`` was found. -The ocaml libraries build artifacts are copied, referred as +The place where the library files are copied, referred as **libdir**, is determined as follow for a given build context: #. if an explicit ``--libdir `` argument is passed, use this path +#. if an explicit ``--prefix `` argument is passed, use ``/lib`` #. if ``ocamlfind`` is present in the ``PATH``, use the output of ``ocamlfind printconf destdir`` #. if ``opam`` is present in the ``PATH``, use the output of ``opam config var