Browse thread
Ocamlbuild: the "rule" API function and tags
- Romain Bardou
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Romain Bardou <Romain.Bardou@l...> |
| Subject: | Ocamlbuild: the "rule" API function and tags |
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