[Omake] scanning of .mly files
Francois Pottier
Francois.Pottier at inria.fr
Mon Jun 12 13:42:07 PDT 2006
On Mon, Jun 12, 2006 at 12:35:58PM -0700, Aleksey Nogin wrote:
>
> P.S. The only truly truly general solution would be to have some sort of
> interface where ocamldep (or any other dependency scanner) would instead
> of asking the filesystem the question "does foo.ml exist?" (which is
> what it does now) would be capable of asking OMake "is foo.ml buildable?".
As some of you may recall from an earlier message, I have written a wrapper
that does exactly this. The need for it arises immediately when using Menhir.
The wrapper accepts a list of files that are known to be buildable and tricks
ocamldep into believing that these files exist (so that appropriate
dependencies can be generated). It is distributed with Menhir.
The "staging" idea seems to be going the wrong way. In a project that uses
Menhir, one must alternate between compiling (using ocaml or menhir) and
scanning (using ocamldep or menhir --depend). It is great feature of omake
that it is able to perform this kind of alternation. It seems to me that no
new features are necessary?
That said, my OMakefile for use with Menhir does not work 100% of the time
yet...
--
François Pottier
Francois.Pottier at inria.fr
http://cristal.inria.fr/~fpottier/
More information about the Omake
mailing list