From ff0fa5885fc586809bdf70a46adb74a54e78bbdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dimino?= Date: Sun, 26 Feb 2017 19:56:38 +0000 Subject: [PATCH] Update the manual --- doc/manual.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/manual.org b/doc/manual.org index 021b24c2..a0d3e3c5 100644 --- a/doc/manual.org +++ b/doc/manual.org @@ -186,6 +186,14 @@ be automatically installed as well. its name. They are used to describe libraries, executables, tests, and everything Jbuilder needs to know about. +*** OCaml syntax + +If a =jbuild= file starts with =(* -*- tuareg -*- *)=, then it is +interpreted as an OCaml script that generated the =jbuild= file as +described in the rest of this section. The code in the script will +have access to a [[../plugin/jbuild_plugin.mli][Jbuild_plugin]] module containing details about the +build context it is executed in. + *** Specification =jbuild= files are composed of stanzas. For instance a typical