caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OCamldep & Paths
@ 2002-04-09 20:42 Warp
  2002-04-10 10:57 ` Olivier Andrieu
  0 siblings, 1 reply; 2+ messages in thread
From: Warp @ 2002-04-09 20:42 UTC (permalink / raw)
  To: OCaml

Seems like ocamldep got some problems with paths :

When I run : ocamldep aexpr.ml test.ml
I got the following :

aexpr.cmo : aexpr.cmi
test.cmo : aexpr.cmi

But if I run ocamldep from the parent directory : ocamldep aexpr/aexpr.ml
aexpr/test.ml
I got only :

aexpr/aexpr.cmo : aexpr/aexpr.cmi

This can cause problems if you're having large project using
multiple-directories.
( Tested under 3.04 Win32 native )

Warp

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] OCamldep & Paths
  2002-04-09 20:42 [Caml-list] OCamldep & Paths Warp
@ 2002-04-10 10:57 ` Olivier Andrieu
  0 siblings, 0 replies; 2+ messages in thread
From: Olivier Andrieu @ 2002-04-10 10:57 UTC (permalink / raw)
  To: Warp; +Cc: caml-list

 Warp [Tuesday 9 April 2002] :
 >
 > Seems like ocamldep got some problems with paths :
 > 
 > When I run : ocamldep aexpr.ml test.ml
 > I got the following :
 > 
 > aexpr.cmo : aexpr.cmi
 > test.cmo : aexpr.cmi
 > 
 > But if I run ocamldep from the parent directory : ocamldep aexpr/aexpr.ml
 > aexpr/test.ml
 > I got only :
 > 
 > aexpr/aexpr.cmo : aexpr/aexpr.cmi

There's an allusion to this somewhere in the manual (in the ocamldep
part I guess). You have to use the -I switch in this case :

  ocamldep -I aexptr aexpre/aexpr.ml aexpr/test.ml

should do what you want.

-- 
       Olivier
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-10 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-09 20:42 [Caml-list] OCamldep & Paths Warp
2002-04-10 10:57 ` Olivier Andrieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).