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

* Re: [Caml-list] Ocamlbuild: the "rule" API function and tags
  2008-02-12  9:47 Ocamlbuild: the "rule" API function and tags Romain Bardou
@ 2008-02-12  9:54 ` Nicolas Pouillard
  2008-02-12 10:03   ` Romain Bardou
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pouillard @ 2008-02-12  9:54 UTC (permalink / raw)
  To: Romain Bardou; +Cc: caml-list

[-- 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 --]

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

* Re: [Caml-list] Ocamlbuild: the "rule" API function and tags
  2008-02-12  9:54 ` [Caml-list] " Nicolas Pouillard
@ 2008-02-12 10:03   ` Romain Bardou
  2008-02-12 10:34     ` Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Romain Bardou @ 2008-02-12 10:03 UTC (permalink / raw)
  To: Nicolas Pouillard; +Cc: Romain Bardou, caml-list

Thanks for your quick answer. It seems I'm looking at an obsolete 
documentation:
http://gallium.inria.fr/~pouillar/ocamlbuild/html/Signatures.PLUGIN.html

Next time I should browse the CVS source instead, it seems much more 
up-to-date ^^

-- 
Romain Bardou


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

* Re: [Caml-list] Ocamlbuild: the "rule" API function and tags
  2008-02-12 10:03   ` Romain Bardou
@ 2008-02-12 10:34     ` Nicolas Pouillard
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pouillard @ 2008-02-12 10:34 UTC (permalink / raw)
  To: Romain Bardou; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Excerpts from Romain Bardou's message of Tue Feb 12 11:03:59 +0100 2008:
> Thanks for your quick answer. It seems I'm looking at an obsolete 
> documentation:
> http://gallium.inria.fr/~pouillar/ocamlbuild/html/Signatures.PLUGIN.html
> 
> Next time I should browse the CVS source instead, it seems much more 
> up-to-date ^^

Thanks, I've just updated it.

-- 
Nicolas Pouillard aka Ertai

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ 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).