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
pb with ocamldep
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-06-08 (20:31)
From: Sven LUTHER <luther@d...>
Subject: Re: pb with ocamldep
On Wed, Jun 07, 2000 at 04:21:08PM +0200, Christophe Raffalli wrote:
> It would be nice ocamldep coud also accept the -pp option to call a
> preprocessor.
> I have some problems with files that are not syntacticaly correct before
> preprocessing !
> So I can not use ocamldep on these files and this is annoying.

What about piping them through the preprocessor before handling them over to
ocamldep, in true unixish tradition ?

Something like (surely not exact, but you will understand the thought) :

ls *.ml* | cpp <options> | ocamldep >>.depend