caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Nicolas Pouillard <nicolas.pouillard@gmail.com>
To: Vincent Aravantinos <vincent.aravantinos@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin?
Date: Mon, 22 Feb 2010 08:11:53 -0800 (PST)	[thread overview]
Message-ID: <4b82acc9.1067f10a.2adf.ffffc714@mx.google.com> (raw)
In-Reply-To: <4807FA06-9ECF-4EA9-81CA-23059F35E235@gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]

On Mon, 22 Feb 2010 15:30:14 +0100, Vincent Aravantinos <vincent.aravantinos@gmail.com> wrote:
> 
> Le 22 févr. 10 à 14:45, Nicolas Pouillard a écrit :
> 
> > On Sun, 21 Feb 2010 23:15:09 +0100, Vincent Aravantinos <vincent.aravantinos@gmail.com 
> > > 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.
> 
> 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  
> file such that ocamlbuild can be aware that this file changed in order  
> to launch a new compilation?

No there is no such behavior, but this may be simulated by having two rules,
one .tex->.aux+... and one .tex+.aux->... and putting them in the right order
might work.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr


      reply	other threads:[~2010-02-22 16:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-21 22:15 Vincent Aravantinos
2010-02-22 13:45 ` [Caml-list] " Nicolas Pouillard
2010-02-22 14:30   ` Vincent Aravantinos
2010-02-22 16:11     ` Nicolas Pouillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b82acc9.1067f10a.2adf.ffffc714@mx.google.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=vincent.aravantinos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).