Re: new ocamldep and camlp4

From: Daniel de Rauglaudre (daniel.de_rauglaudre@inria.fr)
Date: Mon Mar 08 1999 - 09:15:52 MET


Date: Mon, 8 Mar 1999 09:15:52 +0100
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: William Chesters <williamc@dai.ed.ac.uk>, caml-list@inria.fr
Subject: Re: new ocamldep and camlp4
In-Reply-To: <199903061835.SAA01332@toy.william.bogus>; from William Chesters on Sat, Mar 06, 1999 at 06:35:50PM +0000

> 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/



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET