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 532A0BC37 for ; Mon, 22 Feb 2010 14:45:09 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8BAHQZgkvRVdvhkGdsb2JhbACRJYlfCBUBAQEBCQkMBxMDH6sfgVmEPohyAQEDBYRmBIMV X-IronPort-AV: E=Sophos;i="4.49,518,1262559600"; d="scan'";a="53398866" Received: from mail-ew0-f225.google.com ([209.85.219.225]) by mail1-smtp-roc.national.inria.fr with ESMTP; 22 Feb 2010 14:45:09 +0100 Received: by ewy25 with SMTP id 25so1749495ewy.3 for ; Mon, 22 Feb 2010 05:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:notmuch-help :notmuch-help:notmuch-help:notmuch-help:from:subject:to:in-reply-to :references; bh=uQo8AufR0X9M3+NgwmAuj6wXsckyog3qQxP4s3wc17k=; b=a9UH7V/kPaMN4A7mxDqEnYX36VLJxotZEJPiUP9ZuvK8Aq6TWxCfFwt54S7LQkoA0D 7vQpZUBWlZH/YH54un423thTYeXbkXMUZyPSaVDAVvfgd3CG3ygsgLW8uKme9xQZLp4L Y2/Afm3yFqsbFaDjlhJc0TSfMe4ITYPSirMjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:notmuch-help:from:subject:to:in-reply-to:references; b=TzieqBCxDfI7zA6TA4juQBDO9MoSysiqItv0EY/9JLgf+1g66Z2VsqD00QpBsJod3W IlcMYrG7xrXlrvekIaayoA2jK1WNa9emX9/ECvnAiBKLUWi2ueT4qrkgmEKmA8LVpCSe 7YL4kZfMm86YMDw0O4QvBmSm8tMs8FWxMWsHw= Received: by 10.213.109.131 with SMTP id j3mr935557ebp.36.1266846308446; Mon, 22 Feb 2010 05:45:08 -0800 (PST) Received: from localhost (ks.feydakins.org [91.121.104.209]) by mx.google.com with ESMTPS id 16sm2412565ewy.10.2010.02.22.05.45.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Feb 2010 05:45:07 -0800 (PST) Message-ID: <4b828a63.1067f10a.27f2.ffffbdf8@mx.google.com> Date: Mon, 22 Feb 2010 05:45:07 -0800 (PST) Notmuch-Help: ,a - attach a file Notmuch-Help: ,s - send the message (Notmuch-Help lines will be removed) Notmuch-Help: ,q - abort the message Notmuch-Help: - skip through header lines From: Nicolas Pouillard Subject: Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin? To: Vincent Aravantinos , caml-list@yquem.inria.fr In-Reply-To: <2511B816-C3D0-4DA1-8465-19DF43CDF587@gmail.com> References: <2511B816-C3D0-4DA1-8465-19DF43CDF587@gmail.com> X-Spam: no; 0.00; rebuilding:01 0100,:01 rebuilt:01 concretely:01 compilation:01 recompile:01 rubber:98 wrote:01 compile:01 caml-list:01 dependency:01 latex:02 simpler:05 vincent:07 vincent:07 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 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. -- Nicolas Pouillard http://nicolaspouillard.fr