* ocamlbuild - how to force the rebuilding of a target inside a plugin?
@ 2010-02-21 22:15 Vincent Aravantinos
2010-02-22 13:45 ` [Caml-list] " Nicolas Pouillard
0 siblings, 1 reply; 4+ messages in thread
From: Vincent Aravantinos @ 2010-02-21 22:15 UTC (permalink / raw)
To: caml-list
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".
V.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin?
2010-02-21 22:15 ocamlbuild - how to force the rebuilding of a target inside a plugin? Vincent Aravantinos
@ 2010-02-22 13:45 ` Nicolas Pouillard
2010-02-22 14:30 ` Vincent Aravantinos
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pouillard @ 2010-02-22 13:45 UTC (permalink / raw)
To: Vincent Aravantinos, caml-list
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.
--
Nicolas Pouillard
http://nicolaspouillard.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin?
2010-02-22 13:45 ` [Caml-list] " Nicolas Pouillard
@ 2010-02-22 14:30 ` Vincent Aravantinos
2010-02-22 16:11 ` Nicolas Pouillard
0 siblings, 1 reply; 4+ messages in thread
From: Vincent Aravantinos @ 2010-02-22 14:30 UTC (permalink / raw)
To: Nicolas Pouillard; +Cc: caml-list
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?
V.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild - how to force the rebuilding of a target inside a plugin?
2010-02-22 14:30 ` Vincent Aravantinos
@ 2010-02-22 16:11 ` Nicolas Pouillard
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pouillard @ 2010-02-22 16:11 UTC (permalink / raw)
To: Vincent Aravantinos; +Cc: caml-list
[-- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-22 16:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-21 22:15 ocamlbuild - how to force the rebuilding of a target inside a plugin? 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox