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:45)
From: Romain Bardou <Romain.Bardou@l...>
Subject: Ocamlbuild: the "rule" API function and tags

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.

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.


	Romain Bardou