From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 9F3AFBC6B for ; Tue, 12 Feb 2008 10:45:42 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKj5sEfAXQImh2dsb2JhbACQPAEBAQgKKZpx X-IronPort-AV: E=Sophos;i="4.25,339,1199660400"; d="scan'208";a="9087672" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 12 Feb 2008 10:45:42 +0100 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m1C9jXtC023144 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 12 Feb 2008 10:45:42 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAB76sEeBrw8Ek2dsb2JhbACQPAEBAQEHBAYJIJpx X-IronPort-AV: E=Sophos;i="4.25,339,1199660400"; d="scan'208";a="7962075" Received: from ext.lri.fr ([129.175.15.4]) by mail1-smtp-roc.national.inria.fr with ESMTP; 12 Feb 2008 10:45:41 +0100 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id AAE7AA48AC for ; Tue, 12 Feb 2008 10:45:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id np2BfVEDUOVN for ; Tue, 12 Feb 2008 10:45:41 +0100 (CET) Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id 89A88A4896 for ; Tue, 12 Feb 2008 10:45:41 +0100 (CET) Received: from [129.175.4.128] (lri4-128 [129.175.4.128]) by smtp.lri.fr (Postfix) with ESMTP id 76125E04A2 for ; Tue, 12 Feb 2008 10:45:41 +0100 (CET) Message-ID: <47B16B45.8010007@lri.fr> Date: Tue, 12 Feb 2008 10:47:49 +0100 From: Romain Bardou User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: caml-list Subject: Ocamlbuild: the "rule" API function and tags Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 47B16ABD.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lri:01 ocaml:01 argument:02 restrict:02 restrict:02 api:02 api:02 seems:03 triggered:05 function:08 function:08 instance:10 rule:10 rule:10 file:11 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