From 71a670e63e80b62ff42bb18b8a73bfb64984684e Mon Sep 17 00:00:00 2001 From: Sylvain Le Gall Date: Mon, 27 Oct 2003 20:51:43 +0000 Subject: [PATCH] Still writing Sylvain LE GALL --- chapter-liblocal.xml | 34 +++++++++++++++++++++++++++++++--- chapter-ocaml.xml | 31 ++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 4 deletions(-) diff --git a/chapter-liblocal.xml b/chapter-liblocal.xml index ddad9a85..0fe2b9b5 100644 --- a/chapter-liblocal.xml +++ b/chapter-liblocal.xml @@ -1,3 +1,31 @@ -
- Camlp4 files -
+ + Installation and use of locally installed &ocaml-name; is out of the + scope of this document. However, in order to have it work with a standard + &ocaml-name; &debian-name; install, you should follow some guideline. + + +
+ You user this path to install local library and executable : + + + bytecoded executable + /usr/local/bin + /usr/local/sbin + + + bytecoded library ( *.cma ) + /usr/local/lib/ocaml/&ocaml-version;/ + native executable + native library ( *.cmxa ) + shared library ( for C-binding ) ( dll*.so ) + static library ( for C-binding ) ( lib*.a ) + bytecoded object ( *.cmo ) + native object ( *.cmx ) + configuration file for handling library ( META ) + &ocamldoc; generated documentation ( *.odoc ) + &camlp4; related files ( *.cm[ao] ) + + + + +
diff --git a/chapter-ocaml.xml b/chapter-ocaml.xml index ad57135a..2afcfc8f 100644 --- a/chapter-ocaml.xml +++ b/chapter-ocaml.xml @@ -46,6 +46,7 @@ native object ( *.cmx ) configuration file for handling library ( META ) &ocamldoc; generated documentation ( *.odoc ) + &camlp4; related files ( *.cm[ao] ) @@ -270,8 +271,36 @@ author to have a well commented source. - + + + Actually, &camlp4; extensions are stored in + /usr/lib/ocaml/&ocaml-version;/camlp4/. In order to do something + cleaner, &ocaml-force; propose to put this files in their own directory, even in their + own package. It is not mandatory, but it could ease a lot, the user of camlp4, by avoiding + name clash. + + + + You just have to consider &camlp4; file just as standard library, except that you + prefix them with -syntax. For example : the syntax + extension coming with libokey-ocaml-dev should be stored + in /usr/lib/ocaml/&ocaml-version;/okey-syntax/, the package + containing it should be called libokey-syntax-ocaml-dev. + + + + + It is recommended to use META to specify how to handle this + extension. + + + + All definition is taken from previous text considering syntax extension as a standalone + library. + + + -- 2.30.2