[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2008-11-04 (20:49) |
From: | Dario Teixeira <darioteixeira@y...> |
Subject: | Re: [Caml-list] Ocamlbuild + Ocamldoc troubles |
Hi, > So, ocamldoc doesn't find "intro.txt". This is because this > file is not copied into the _build directory by ocamlbuild. > You need to explain to ocamlbuild, in your plugin, that your > target (lambdoc.docdir/index.html) depends on "intro.txt", > otherwise ocamlbuild won't copy the file. Even if you copy > the file yourself into the _build directory, ocamlbuild > might delete it. > > If I remember correctly there is a function of the plugin > API, called "dep" if I'm not mistaken, which does exactly > this. Thanks for the reply. Ideally one should be able to specify that info in the _tags file and/or with other special files. And I reckon that Ocamlbuild probably already supports that. By the way, I have managed to get Ocamlbuild to invoke Ocamldoc for the source code files only (no intro or tutorials) by creating a lambdoc.odocl file whose contents are the same as lambdoc.mlpack's. However, the compilation fails with a mysterious "analyse_module: parsetree and typedtree don't match" error: + ocamlfind ocamldoc -dump lambdoc/document_ast.odoc -package extlib -package ocsigen.xhtml -package pcre -package sexplib -package threads -package unix -package xml-light -I lambdoc -I lambdoc/readers -I lambdoc/writers -I lambdoc/readers/lambtex_reader_impl lambdoc/document_ast.ml analyse_module: parsetree and typedtree don't match. 1 error(s) encountered Command exited with code 1. Any ideas? Cheers, Dario