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=1.2 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 75F77BC69 for ; Wed, 21 Nov 2007 14:01:58 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAJ66Q0fAI/YJ/2dsb2JhbACRAg X-IronPort-AV: E=Sophos;i="4.21,446,1188770400"; d="scan'208";a="4470715" Received: from bart.inescn.pt ([192.35.246.9]) by mail2-smtp-roc.national.inria.fr with ESMTP; 21 Nov 2007 14:01:58 +0100 Received: from localhost (bart.inescn.pt [127.0.0.1]) by bart.inescn.pt (8.13.8/8.13.8/1) with ESMTP id lALD1tHB008925; Wed, 21 Nov 2007 13:01:55 GMT X-Virus-Scanned: amavisd-new at inescporto.pt Received: from bart.inescn.pt ([127.0.0.1]) by localhost (bart.inescn.pt [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O8sOwi7YzNeW; Wed, 21 Nov 2007 13:01:45 +0000 (WET) Received: from [194.117.30.94] (morfina.inescn.pt [194.117.30.94]) by bart.inescn.pt (8.13.8/8.13.8/38) with ESMTP id lALD1aJO008912; Wed, 21 Nov 2007 13:01:36 GMT Message-ID: <47442C2C.3010101@inescporto.pt> Date: Wed, 21 Nov 2007 13:01:32 +0000 From: Hugo Ferreira User-Agent: Thunderbird 2.0.0.9 (X11/20071119) MIME-Version: 1.0 To: Nicolas Pouillard Cc: caml-list Subject: Re: [Caml-list] ocamlbuild: using *.itarget with flags References: <474416D4.4060903@inescporto.pt> <1195648376-sup-888@port-ext2.ensta.fr> In-Reply-To: <1195648376-sup-888@port-ext2.ensta.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; flags:01 byte:01 byte:01 flags:01 wrote:01 unix:01 unix:01 caml-list:01 modules:02 binary:02 binary:02 blank:97 module:03 library:03 src:94 I will use the _tag file then. Thank you. Nicolas Pouillard wrote: > Excerpts from hmf's message of Wed Nov 21 12:30:28 +0100 2007: >> Hello, > Hello, > >> I was attempting to use the *.itarget file >> in order to build several modules. I have for >> example: >> >> all.itarget: >> ................................. >> src/comb/tests_comb.d.byte >> src/uf/bench.d.byte >> ................................. >> >> Unfortunately the last target requires >> that I use the Unix module (-lib unix). >> >> My question is: >> >> 1. Does this type of grouped target >> support the addition of flags? > > Flags to the ocamlbuild binary are just here to quickly give global options. > However this method doesn't scale at all. For this purpose we have tags. > > Basically you just have to tag your binary that it uses the unix library. > > $ cat _tags > "src/uf/bench.d.byte": use_unix > >> A further notice: >> >> The manual states that in the *.itarget >> files a comment is either a blank or dash. >> Does this mean: >> >> - comment here >> >> is a comment? If so, it does not seem >> to work. > > The manual is wrong on that point, it's a sharp (#) not a dash (-). > > # comment here