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.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id EA305BC69 for ; Wed, 2 May 2007 13:54:04 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l42Bs23O030555 for ; Wed, 2 May 2007 13:54:04 +0200 Received: by nz-out-0506.google.com with SMTP id l8so105494nzf for ; Wed, 02 May 2007 04:54:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qDb1bBA2ujGU44zj5ds0wCQ8uOo8ZqqDkWruWcHVEZD9gqxLxFhi80C+Hmtz/m+3S6Sg+6CnNjxCG5MRs+CEnZoSzfwwUfHYuJgiXSNAjwv4mlPWzI1YA2bWJm5bww1Mxn2kIaPtV1Bl1MJuRR7IFYRawjnThucPldqlU9eunUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N2CXI6+jgZwxjJO+3FKATZfKnuIBVxnTnCIjM64pOkfli6qL0eOIItyA04ek8nfPegtprXKQndQP7CnH7OCCEAchx9hk4GRVsBgtBXbhMJXJSja0vloRz3l+SLLyaN2a29fe1atG6dH0UduPusTLHetM12dJkdx/ASRXndRCWO4= Received: by 10.114.53.1 with SMTP id b1mr181594waa.1178106840688; Wed, 02 May 2007 04:54:00 -0700 (PDT) Received: by 10.114.183.15 with HTTP; Wed, 2 May 2007 04:54:00 -0700 (PDT) Message-ID: Date: Wed, 2 May 2007 13:54:00 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] Re: ocamlbuild, menhir and keeping tokens in a separate file Cc: "Caml List" In-Reply-To: <264A27CD-4310-4142-9BCB-2BF3DF5478C3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <301C13B2-671A-40CE-AB6C-E92E0ED454E6@gmail.com> <78040751-B95B-4620-A995-A4AB74F5E997@gmail.com> <2A1A8C74-50D5-4F0B-815B-B56CA506578E@gmail.com> <264A27CD-4310-4142-9BCB-2BF3DF5478C3@gmail.com> X-j-chkmail-Score: MSGID : 46387BDA.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46387BDA.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; tokens:01 dependencies:01 ocaml:01 parser:01 ocamldep:01 ocaml:01 ocamldep:01 tokens:01 usr:01 usr:01 wrote:01 caml-list:01 bin:01 bin:01 mly:02 On 5/2/07, Joel Reymont wrote: > I need the same options to Menhir when calculating dependencies so I > thought I would replace "ocaml"; "parser"; "menhir" with > "menhir_ocamldep". This works, for example: > > flag ["ocaml"; "menhir_ocamldep" ] (S[A"--external-tokens"; > A"EasyToken";]); > > Still, > > _tags: > > "EasyParser.mly": use_tokens > > myocamlbuild.ml: > > dep ["ocaml"; "menhir_ocamldep"; "use_tokens"] ["EasyToken.mly"]; > > + /usr/local/bin/menhir --external-tokens EasyToken --raw-depend -- > ocamldep '/usr/local/bin/ocamldep.opt -modules' EasyParser.mly > > EasyParser.mly.depends > > Doesn't seem to work, I don't see EasyToken.mly included on the > command line. I was expecting to see "EasyParser.mly EasyToken.mly" The main behavior of dep is just to build EasyToken.mly before running the command, not to include it into the command line. You can use flag to insert it into the command line. -- Nicolas Pouillard