Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocamldep too "gentle".
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi Vanicat <remi.vanicat@l...>
Subject: Re: [Caml-list] Ocamldep too "gentle".
David Brown <caml-list@davidb.org> writes:

> I'm having a problem with ocamldep being too "gentle".  I have a file
> units.ml that is generated with extract_crc.  The problem is that
> ocamldep gets run at the beginning of the make, when units.ml doesn't
> yet exist.  ocamldep doesn't output the dependency on units.cmo and
> units.cmx because it can't find the source file.

The solution is to generate units.ml before generating the
dependency.... 

You could try to look at what the OcamlMakefile do for ocamllex and
ocamlyacc generated ml file.

-- 
Rémi Vanicat

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners