English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlbuild -pack and ocamldoc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-11-28 (11:11)
From: Benedikt Grundmann <benedikt-grundmann@w...>
Subject: ocamlbuild -pack and ocamldoc
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,


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

(From Calvin & Hobbes)