I've asked about ocamlbuild on irc, but without any success,
so I'll try to ask in caml-list now.
> Has anybody tried to compile OCaml + Coq project with ocamlbuild?
Here is an attempt to make plugin:
, but the plugin doesn't work as expected: it fails to use rule
"ocaml: mli -> cmi" to produce String0.cmi from the existing
String0.mli file. If you run script "./run.sh" from repository,
you'll see the problem.
ygrek gave me the idea that ocamlbuild doesn't see
_build/String0.mli because it doesn't know that this file
was produced by extraction (it seems that ocamlbuild
internally stores known files from _build directory).
I have no way to tell ocamlbuild in advance which
files will be produced extracting the .v file.
Maybe there are ways to tell ocamlbuild "just use _build
contents without questions" or "rescan _build directory"?
Or maybe there are other ways to deal with this issue?
(the ultimate goal of this plugin is to have source .v and .ml
files in project's source tree, without any Coq-extracted
intermediate .ml files, which should reside in _build.)
Caml-list mailing list. Subscription management and archives:
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs