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
new ocamldep and camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: new ocamldep and camlp4
> 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
which syntax extensions if you need:
      camlp4o pa_extend.cmo q_MLast.cmo pr_depend.cmo
and the -I options, after --:
      camlp4o pr_depend.cmo -- -I dir1 -I dir2

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; \