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
Adding support for dypgen to ocamlbuild
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Adding support for dypgen to ocamlbuild
On 5/2/07, Joel Reymont <> wrote:
> How do I add support for dypgen to my ocamlbuild project?
> dypgen uses *.dyp files so I added <**/*.dyp>: dypgen to my _tags
> file but I'm not sure how to proceed from there.

Tags, are about dealing with exception to the rule. You should start
by defining a rule, no?

You should look at ocamlbuild/ and mimic rule
declaration to handle dypgen.

Look also at ocamlbuild/manual/ which is a well
documented ocamlbuild plugin.

rule "Dypgen...."
  ~prods:[""; "%.mli"]
  begin fun env build ->
      let ml = env "" in
       Cmd(S[A"dygen"; ....])

Nicolas Pouillard