From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA11897 for caml-redistribution; Mon, 8 Mar 1999 16:08:04 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA06466 for ; Mon, 8 Mar 1999 09:16:35 +0100 (MET) Received: from jaune.inria.fr (jaune.inria.fr [128.93.11.80]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id JAA19822 for ; Mon, 8 Mar 1999 09:16:34 +0100 (MET) Received: (from ddr@localhost) by jaune.inria.fr (8.8.7/8.8.7) id JAA26714; Mon, 8 Mar 1999 09:15:53 +0100 Message-ID: <19990308091552.A25026@jaune.inria.fr> Date: Mon, 8 Mar 1999 09:15:52 +0100 From: Daniel de Rauglaudre To: William Chesters , caml-list@inria.fr Subject: Re: new ocamldep and camlp4 References: <199903061835.SAA01332@toy.william.bogus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <199903061835.SAA01332@toy.william.bogus>; from William Chesters on Sat, Mar 06, 1999 at 06:35:50PM +0000 Sender: weis > 2.02's new ocamldep is very nice! Could we also have > > o a -pp option so that it can handle sources with camlp4 syntax > extensions, and This could be interesting indeed, and I agree with your request. There is another answer: in camlp4 2.02, you have the printer "pr_depend.cmo": camlp4o pr_depend.cmo foo.ml which syntax extensions if you need: camlp4o pa_extend.cmo q_MLast.cmo pr_depend.cmo foo.ml and the -I options, after --: camlp4o pr_depend.cmo -- -I dir1 -I dir2 foo.ml It applies to one file. Therefore, in a makefile: ocamldep $(INCLUDES) *.ml *.mli can be translated into: for i in *.ml *.mli; do \ camlp4o pr_depend.cmo -- $(INCLUDES) $$i; \ done -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/