Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Intelligent handling of dependencies in complex ocaml projects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David MENTRE <dmentre@l...>
Subject: Re: [Caml-list] Intelligent handling of dependencies in complex ocaml projects
Hello Cezary,

Cezary Kaliszyk <cek@zodiac.mimuw.edu.pl> writes:

> Ocamldep is insufficient becouse it requires providing all
> source files (from all directories) in command line.
>
> Different subprojects depend on different external libraries. These 
> libraries may require different linkingflags. Some of them are
> contradictory. So I can't call ocamldep like 
>   ocamldep `find . -name "*.ml"`
> because it requires all those flags together.

Have you considered calling several times ocamldep (from your root
directory), each time with the specific options, and then using the
"-include" directive of make to import them in the main Makefile?

I'm using a similar approach to generate dependencies in two successive
phases.

I hope it helps,
Yours,
david
-- 
 David Mentré <dmentre@linux-france.org>

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