Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] ocamlbuild, knowing what is being built

1 view
Skip to first unread message

Daniel Bünzli

unread,
Jul 10, 2010, 8:24:54 AM7/10/10
to caml...@inria.fr
Hello,

I have two mutually dependent targets t1 and t2. They are not
dependent in the sense that one needs the other to be built, they are
dependent in the sense that after the build the build artifacts of one
target needs the artifacts of the other (e.g. think of two webpages
each refering to the other).

In other words if I build t1 I want t2 to be build and vice-versa.
However doing so in my rule with the 'build' argument will result in a
circular build, is there any way to get the targets that are already
being built when a rule is invoked ?

Thanks,

Daniel

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Daniel Bünzli

unread,
Jul 15, 2010, 11:56:36 AM7/15/10
to caml...@inria.fr
> is there any way to get the targets that are already
> being built when a rule is invoked ?

Solved that by manually tracking in my rules the targets I build in a
global reference, so far this solves my problem but I wonder if there
are any concurrency issue that may arise, I don't know how ocamlbuild
handles parallel target building.

Best,

0 new messages