From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 4C020BC37 for ; Mon, 22 Feb 2010 15:30:20 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8BAPMjgkvRVdrYkWdsb2JhbACRJYITh0wIFQEBAQEJCwoHEwMfrAGBWYREiHIBAQMFhGYE X-IronPort-AV: E=Sophos;i="4.49,518,1262559600"; d="scan'208";a="53402104" Received: from mail-bw0-f216.google.com ([209.85.218.216]) by mail1-smtp-roc.national.inria.fr with ESMTP; 22 Feb 2010 15:30:19 +0100 Received: by bwz8 with SMTP id 8so1751853bwz.3 for ; Mon, 22 Feb 2010 06:30:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Vjzj1xiIud+f/rr1Qwvxb1AMuMPQIBYfAdPcEb7bzjg=; b=w7we+3QSulbal+0YBzdoSeYehMTMYvogj2qbACb6ZPikLTsUfJXWgCiRJPWIdElAUQ 7SBMALNmFfvWpbY1GFlYj/2CKQqvR4uPtXLymGHp/HtHYNOu/snd2wMMAwvq0z7IWjiA SPhPq9G1XzvuhC+DrCVaytGMkOHNI/FAUPen8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=faEwTcT7m5uB40l/jNxivjAPWB1KBIgpgUR0+Elw1KsNiRuZOcNP7OHz5D2Yr26Iha mznn8xJvQWGTIA3zBXKqvMpwRGEXysv5tnAv9VNsszCEz0odGKCQxSl0Usj5yGvvLzEb e/kSW52P27mrTxmoVt0U7hwgnY2tg/YlaL0OU= Received: by 10.204.4.207 with SMTP id 15mr1999537bks.60.1266849019414; Mon, 22 Feb 2010 06:30:19 -0800 (PST) Received: from ?192.168.0.11? (tui75-1-81-57-73-233.fbx.proxad.net [81.57.73.233]) by mx.google.com with ESMTPS id 14sm1152421bwz.14.2010.02.22.06.30.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Feb 2010 06:30:17 -0800 (PST) Cc: caml-list@yquem.inria.fr Message-Id: <4807FA06-9ECF-4EA9-81CA-23059F35E235@gmail.com> From: Vincent Aravantinos To: Nicolas Pouillard In-Reply-To: <4b828a63.1067f10a.27f2.ffffbdf8@mx.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin? Date: Mon, 22 Feb 2010 15:30:14 +0100 References: <2511B816-C3D0-4DA1-8465-19DF43CDF587@gmail.com> <4b828a63.1067f10a.27f2.ffffbdf8@mx.google.com> X-Mailer: Apple Mail (2.936) X-Spam: no; 0.00; rebuilding:01 0100,:01 rebuilt:01 concretely:01 compilation:01 recompile:01 compilation:01 rubber:98 wrote:01 compile:01 caml-list:01 dependency:01 dependency:01 latex:02 simpler:05 Le 22 f=E9vr. 10 =E0 14:45, Nicolas Pouillard a =E9crit : > On Sun, 21 Feb 2010 23:15:09 +0100, Vincent Aravantinos = > wrote: >> Hi list, >> >> does anybody (Nicolas?) knows if it is possible to force a target to >> be rebuilt from within an ocamlbuild plugin? >> >> Concretely I am making a plugin for LaTeX compilation and would like >> to say to ocamlbuild: >> "first compile the source, then if the .aux file has changed then >> recompile it". > > I would suggest to not try to bypass the dependency system and to =20 > instead > try to make a rule that fits ocamlbuild mechanism. However the simpler > is maybe to call a tool which does this job like rubber. Great, I didn't know of this tool! I'll use it. Still, would have it been possible to make a dependency on the .aux =20 file such that ocamlbuild can be aware that this file changed in order =20= to launch a new compilation? V.=