caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Romain Bardou <Romain.Bardou@lri.fr>
To: caml-list <caml-list@inria.fr>
Subject: Ocamlbuild: the "rule" API function and tags
Date: Tue, 12 Feb 2008 10:47:49 +0100	[thread overview]
Message-ID: <47B16B45.8010007@lri.fr> (raw)

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.

However, when I tried to add a rule in my plugin, the rule is called 
whatever the tags of the file may be.

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.

Thanks,

	Romain Bardou


             reply	other threads:[~2008-02-12  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  9:47 Romain Bardou [this message]
2008-02-12  9:54 ` [Caml-list] " Nicolas Pouillard
2008-02-12 10:03   ` 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=47B16B45.8010007@lri.fr \
    --to=romain.bardou@lri.fr \
    --cc=caml-list@inria.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;
as well as URLs for NNTP newsgroup(s).