From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Adding support for dypgen to ocamlbuild
Date: Wed, 2 May 2007 13:58:58 +0200 [thread overview]
Message-ID: <cd67f63a0705020458g6975bdcfr54984a12d65fbb9f@mail.gmail.com> (raw)
In-Reply-To: <CA39A8CC-ED29-46BB-9CF4-1AACCD4B17AF@gmail.com>
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
prev parent reply other threads:[~2007-05-02 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 10:09 Joel Reymont
2007-05-02 11:58 ` Nicolas Pouillard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cd67f63a0705020458g6975bdcfr54984a12d65fbb9f@mail.gmail.com \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=joelr1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).