caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Ocamlbuild: the "rule" API function and tags
@ 2008-02-12  9:47 Romain Bardou
  2008-02-12  9:54 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Romain Bardou @ 2008-02-12  9:47 UTC (permalink / raw)
  To: caml-list

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


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

end of thread, other threads:[~2008-02-12 10:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12  9:47 Ocamlbuild: the "rule" API function and tags Romain Bardou
2008-02-12  9:54 ` [Caml-list] " Nicolas Pouillard
2008-02-12 10:03   ` Romain Bardou
2008-02-12 10:34     ` 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).