[Omake] scanning of .mly files

Jason Hickey jyh at cs.caltech.edu
Mon Jun 12 13:01:58 PDT 2006


Christian Stork wrote:
> Intuitiely, it would seem that the only reasonable solution to this
> problem is some kind of build stage concept (a generaliztion of
> OCamlGeneratedFiles)

I had been thinking along these lines too.  I worry that it is 
complicated.  OTOH, we could probably define it so normally you wouldn't 
see it.

To continue the brainstorm:

# Stage <stagename> can only be built after <stagedeps>
.STAGE: <stagename>: <stagedeps>

# This rule belongs to stage <stagename>
foo: bar :stage: <stagename>
    ...

# Same for .SCANNERS
.SCANNER: scan-boo.ml: boo.ml :stage: <stagename>
    ...

The default (unannotated) stage would have some default name.  We sort 
of do this now with .PHONY targets, and perhaps there is a way to adapt 
phonies for this as well.

I do prefer fixing ocamldep, but on the other hand, this issue may come 
up in other languages too.

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