From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RELAYS autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: by yquem.inria.fr (Postfix, from userid 18041) id 08905BC69; Fri, 28 Sep 2007 18:03:50 +0200 (CEST) Date: Fri, 28 Sep 2007 18:03:50 +0200 To: skaller Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] cut down camldep Message-ID: <20070928160350.GA17311@yquem.inria.fr> References: <1190993816.14100.4.camel@rosella.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1190993816.14100.4.camel@rosella.wigram> User-Agent: Mutt/1.5.9i From: maranget@yquem.inria.fr (Luc Maranget) X-Spam: no; 0.00; maranget:01 maranget:01 --luc:01 camlp:01 makefile:01 syntax:01 -pp:01 camlp:01 hashtbl:01 luc:01 caml-list:01 modules:02 depends:04 perhaps:05 inria:06 Perhaps 'ocamldep -modules' is what you need. --Luc > I wonder if there is some hope of an 'camldep' program which, > given a file x.ml(i) lists the modules on which it depends > but not provided internally. > > Possibly this can be done in camlp4? > > What I do not want is grubby makefile syntax, assumptions > about file extensions, or any directory scanning. Just > > camldep -pp camlp4_things filename.ml > > prints: > > List > Hashtbl > > for example. > > -- > John Skaller