From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: Romain Bardou <romain.bardou@lri.fr>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Ocamlbuild: the "rule" API function and tags
Date: Tue, 12 Feb 2008 10:54:59 +0100 [thread overview]
Message-ID: <1202809819-sup-897@port-ext6.ensta.fr> (raw)
In-Reply-To: <47B16B45.8010007@lri.fr>
[-- Attachment #1: Type: text/plain, Size: 826 bytes --]
Excerpts from Romain Bardou's message of Tue Feb 12 10:47:49 +0100 2008:
> Hello,
Hello,
> The API function "rule" for Ocamlbuild has an argument "~tags" which
> seems to be used, in the file "ocaml_specific.ml" of the Ocamlbuild
> source, to restrict the rule to targets using specific tags.
Forget about the ~tags argument of the "rule" function, it's a deprecated
feature (as the last documentation of the function say it).
> However, when I tried to add a rule in my plugin, the rule is called
> whatever the tags of the file may be.
Yes the argument is ignored.
> How can I control when a rule will be triggered using tags? I need to
> restrict my rule to files that use tag "test", for instance.
You can't, but perhaps is there another way to obtain the same final result.
--
Nicolas Pouillard aka Ertai
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
next prev parent reply other threads:[~2008-02-12 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 9:47 Romain Bardou
2008-02-12 9:54 ` Nicolas Pouillard [this message]
2008-02-12 10:03 ` [Caml-list] " Romain Bardou
2008-02-12 10:34 ` Nicolas Pouillard
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=1202809819-sup-897@port-ext6.ensta.fr \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=romain.bardou@lri.fr \
/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