[Omake] More on ocamldep and generated files.

Aleksey Nogin nogin at cs.caltech.edu
Tue Jun 13 02:04:53 PDT 2006


On 12.06.2006 21:51, Jason Hickey wrote:

> 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 like the idea.  If we are to lobby successfully, we need a patch. I've 
> attached one below.  When given the -modules flag, this ocamldep 
> produces output in human-readable, yet unambiguous form.  Modifications 
> welcome.

Looks good (except you should probably generate a unified diff - those 
are more compact). Are you going to submit a bug entry and write to the 
OCaml list, or should I?

> I am still in favor of an augmenting the rule function.  While you might 
> not like staging, you should at least be able to do it. 

I still do not see why this would be a good idea. Without a compelling 
reason this sounds to me as "While you might not like shooting yourself 
in the foot, you should at least be able to do it." ;-)

> This scheme can for example 1) deprecate OCamlGeneratedFiles (yay!),

- I do not see how. Perhaps I need to see an example of how the proposed 
feature would be used.

- Any scheme that does not automatically discover the generated files is 
obviously suboptimal. And if one does have to specify something 
manually, I'd rather have it in the form of a function (that can later 
be redefined).

Basically, I expect that eventually we'd have:

OCamlGeneratedFiles(files) =
    eprintln($"*** omake WARNING: OCamlGeneratedFiles is no longer needed,")
    eprintln($"                   OMake can now discover this 
automatically!")

What will the corresponding functionality look like in your approach? ;-)

-- 
Aleksey Nogin

Home Page: http://nogin.org/
E-Mail: nogin at cs.caltech.edu (office), aleksey at nogin.org (personal)
Office: Moore 04, tel: (626) 395-2200


More information about the Omake mailing list