Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2004-04-14 (12:56)
From: David MENTRE <dmentre@l...>
Subject: Re: [Caml-list] Intelligent handling of dependencies in complex ocaml projects
Hello Cezary,

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

I hope it helps,
 David Mentré <>

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: