caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild -pack and ocamldoc
@ 2007-11-28 11:11 Benedikt Grundmann
  2007-11-28 13:11 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Benedikt Grundmann @ 2007-11-28 11:11 UTC (permalink / raw)
  To: Caml-list

Hi list (and Nicolas in particular),

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_<syntaxext> tag.
The parts are not independent of each other.

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?

Thanks in advance,

Bene

-- 
Calvin: Life is full of surprises, but never when you need one.



(From Calvin & Hobbes)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocamlbuild -pack and ocamldoc
  2007-11-28 11:11 ocamlbuild -pack and ocamldoc Benedikt Grundmann
@ 2007-11-28 13:11 ` Nicolas Pouillard
  2007-11-28 14:22   ` Ashish Agarwal
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pouillard @ 2007-11-28 13:11 UTC (permalink / raw)
  To: Benedikt Grundmann; +Cc: caml-list

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_<syntaxext> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocamlbuild -pack and ocamldoc
  2007-11-28 13:11 ` [Caml-list] " Nicolas Pouillard
@ 2007-11-28 14:22   ` Ashish Agarwal
  2007-11-28 18:26     ` Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Ashish Agarwal @ 2007-11-28 14:22 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

> You can define a
> rule that syntacly pack all your interfaces into a big mli. Then give it
to
> ocamldoc.

Is there a built-in way to do this? I was just writing my own script.

[-- Attachment #2: Type: text/html, Size: 212 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] ocamlbuild -pack and ocamldoc
  2007-11-28 14:22   ` Ashish Agarwal
@ 2007-11-28 18:26     ` Nicolas Pouillard
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pouillard @ 2007-11-28 18:26 UTC (permalink / raw)
  To: Ashish Agarwal; +Cc: caml-list

Excerpts from Ashish Agarwal's message of Wed Nov 28 15:22:14 +0100 2007:
> > You can define a
> > rule that syntacly pack all your interfaces into a big mli. Then give it
> to
> > ocamldoc.
> 
> Is there a built-in way to do this? I was just writing my own script.

Not yet.
-- 
Nicolas Pouillard aka Ertai


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-28 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 11:11 ocamlbuild -pack and ocamldoc Benedikt Grundmann
2007-11-28 13:11 ` [Caml-list] " Nicolas Pouillard
2007-11-28 14:22   ` Ashish Agarwal
2007-11-28 18:26     ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).