Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Ocamlbuild: the "rule" API function and tags
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-02-12 (09:56)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Ocamlbuild: the "rule" API function and tags
Excerpts from Romain Bardou's message of Tue Feb 12 10:47:49 +0100 2008:
> Hello,

> The API function "rule" for Ocamlbuild has an argument "~tags" which 
> seems to be used, in the file "" 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