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=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 25987BBAF for ; Fri, 27 Feb 2009 21:09:30 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AscDACvXp0nCpx6vgWdsb2JhbACNBYdeAQEWIsIkhBQG X-IronPort-AV: E=Sophos;i="4.38,278,1233529200"; d="scan'208";a="21809284" Received: from smtpka.univ-orleans.fr (HELO ka.univ-orleans.fr) ([194.167.30.175]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Feb 2009 21:09:29 +0100 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by ka.univ-orleans.fr (Postfix) with ESMTP id 53A8D12AD61; Fri, 27 Feb 2009 21:09:29 +0100 (CET) Received: from [192.168.0.12] (ras75-4-82-235-58-110.fbx.proxad.net [82.235.58.110]) by smtps.univ-orleans.fr (Postfix) with ESMTP id 17E3E36E60; Fri, 27 Feb 2009 21:09:33 +0100 (CET) Subject: Re: [Caml-list] Trouble with Ocamldoc + Ocamlbuild From: David Rajchenbach-Teller To: Dario Teixeira Cc: caml-list@yquem.inria.fr In-Reply-To: <481995.31517.qm@web111507.mail.gq1.yahoo.com> References: <481995.31517.qm@web111507.mail.gq1.yahoo.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 27 Feb 2009 21:09:49 +0100 Message-Id: <1235765389.6465.27.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; ocamldoc:01 ens-lyon:01 mli:01 cheers:01 ocamldoc:01 foo:01 mylib:01 cmo:01 cmo:01 mylib:01 foo:01 beginner's:01 ocaml:01 bug:01 univ-orleans:01 You should take a look at Batteries' myocamlbuild.ml, we're solving this issue and it's messy (it involves generating the .mli for each .mlpack). Cheers, David On Fri, 2009-02-27 at 11:57 -0800, Dario Teixeira wrote: > Hi, > > I'm having some trouble getting Ocamlbuild to produce API documentation via > Ocamldoc in a project that uses packed modules. The project has two main > directories, modA and modB, each contanining a couple of modules, as follows: > > modA > |- Foo > |- Bar > > modB > |- Glu > |- Bah > > > I placed the modA.mlpack and modB.mlpack files at the top-level, listing the > modules in the respective directories. The main target itself is to build > the library mylib.cma, containing the packed modules modA.cmo and modB.cmo. > Therefore, also at the top level directory is the file mylib.mllib, whose > contents are "modA" and "modB" in separate lines. > > Now, building the library with "ocamlbuild mylib.cma" works fine. But how > can I tell Ocamlbuild to build the API doc with Ocamldoc? I reckon I have > to create a mylib.odocl file at the top-level, but what should its contents > be? I have tried "modA" and "modB", but it doesn't work. Neither does a > fully qualified specification, such as "modA.Foo", etc. Any thoughts? > > Thanks in advance! > Best regards, > Dario Teixeira > > P.S. The caml-list seems to be cloning posts today. Sorry if you get this > message multiple times. > > > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller « Ce matin Un crétin A tué un chercheur. » (air connu) Latest News of French Research: System being liquidated. Researchers angry.