[Omake] More on ocamldep and generated files.
Jason Hickey
jyh at cs.caltech.edu
Tue Jun 13 18:20:39 PDT 2006
Aleksey Nogin wrote:
>>> So my proposal would be to:
>>> 1) Lobby OCaml maintainers to add a "-modules" flag that would cause
>>> ocamldep to forgo the second step, simply printing out the list of
>>> modules.
I added support for this on the 0.9.8.ocamldep branch. I'm fairly sure
it is stable, but we should examine it more closely before merging to
the trunk. The relevant parts are:
- the find-targets-in-path-optional(<path>, <filenames>) finds
the specified targets, even if the files do not exist yet.
- the ML scanner calls ocamldep with the -modules option, and
pipes it to an internal postprocessor. This is all done
in OCaml.om
It is all transparent, there is no need for OCamlGeneratedFiles, etc.
For now, I've added the ocamldep-omake bytecode executable to OMake.
It is (I believe) a bit slower, perhaps because ocamldep-omake is bytecode.
Jason
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list