caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Adding support for dypgen to ocamlbuild
@ 2007-05-02 10:09 Joel Reymont
  2007-05-02 11:58 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Reymont @ 2007-05-02 10:09 UTC (permalink / raw)
  To: Caml List

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.

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Adding support for dypgen to ocamlbuild
  2007-05-02 10:09 Adding support for dypgen to ocamlbuild Joel Reymont
@ 2007-05-02 11:58 ` Nicolas Pouillard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-05-02 11:58 UTC (permalink / raw)
  To: Joel Reymont; +Cc: Caml List

On 5/2/07, Joel Reymont <joelr1@gmail.com> 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/ocaml_tools.ml and mimic rule
declaration to handle dypgen.

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

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

-- 
Nicolas Pouillard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-02 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-02 10:09 Adding support for dypgen to ocamlbuild Joel Reymont
2007-05-02 11:58 ` [Caml-list] " Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).