Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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

Friendly,

Sven LUTHER