From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id E7705BC6B for ; Wed, 28 Nov 2007 14:12:17 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAO73TEfAXQImh2dsb2JhbACPPgEBAQgKKYEP X-IronPort-AV: E=Sophos;i="4.23,224,1194217200"; d="scan'208";a="19768482" Received: from discorde.inria.fr ([192.93.2.38]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Nov 2007 14:12:17 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id lASDCHvC010610 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 28 Nov 2007 14:12:17 +0100 X-IronPort-AV: E=Sophos;i="4.23,224,1194217200"; d="scan'208";a="4694932" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail2-relais-roc.national.inria.fr with SMTP; 28 Nov 2007 14:12:17 +0100 Received: by ausone.inria.fr (sSMTP sendmail emulation); Wed, _d Nov 2007 14:11:27 +0100 From: "Nicolas Pouillard" Cc: caml-list Subject: Re: [Caml-list] ocamlbuild -pack and ocamldoc To: Benedikt Grundmann References: <9b415f950711280311j1a6ceaf0ldc8191ccd6478d4b@mail.gmail.com> In-Reply-To: <9b415f950711280311j1a6ceaf0ldc8191ccd6478d4b@mail.gmail.com> Date: Wed, 28 Nov 2007 14:11:27 +0100 Message-Id: <1196255261-sup-5716@port-ext2.ensta.fr> User-Agent: Sup/0.2 Content-Type: text/plain; charset=UTF-8 X-Miltered: at discorde with ID 474D6931.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; -pack:01 ocamldoc:01 camlp:01 ocamldoc:01 -pack:01 foo:01 odoc:01 mli:01 ideally:01 caml-list:01 interfaces:01 define:02 consisting:02 benedikt:03 aka:04 Excerpts from Benedikt Grundmann's message of Wed Nov 28 12:11:02 +0100 2007: > Hi list (and Nicolas in particular), Hi, > I have a rather big project consisting of several parts. I currently > build everything > using one central myocamlbuild.ml file, one pN.mlpack file for each > part, a _tags file in each part that adds the for-pack(pN) option and > sometimes the necessary camlp4o, use_ tag. > The parts are not independent of each other. Sounds good. > I want to add a (ocamldoc) reference to my project. Ideally one for > the complete project, where each part is correctly packed and there is > one central index.html file. Originally I had a file pN/pNdoc.odocl > for each part pN and called ocamlbuild pN/pNdoc.docdir/index.html, > which worked until I added the -pack option. Now depending on the > options I set, I either get an error message by ocamlbuild stating > that it does not know how to build pN/foo.odoc or an error message by > ocamldoc stating that it does not know how to find certain files. > > What is the proper way to use ocamldoc together with ocamlbuild in > such a scenario? There is no proper way, but a way that works quite well. You can define a rule that syntacly pack all your interfaces into a big mli. Then give it to ocamldoc. -- Nicolas Pouillard aka Ertai