[Omake] Dependencies on generated tools
Jonathan Roewen
jonathan.roewen at gmail.com
Sun Apr 8 15:52:41 PDT 2007
Hi Again,
Yes, I have two problems to be tackled today =)
Well, more a question of best practice/style, etc.
I have a dir: toolchain/ocaml, which builds a custom ocamlc.
Now, I need my entire tree except that subdir to be built using that
ocamlc. So I set OCAMLC to $(file $(ROOT)/toolchain/ocaml/ocamlc), and
OCAMLLINK to that as well in my OMakeroot.
Then, in toolchain/ocaml/OMakefile I redefine those to ocamlc.
The problem: when it comes to building my tree, it doesn't know to
build my custom ocamlc first. So I'm wondering how do I generate this
dependency properly?
Currently, I just add it as a dependency on the main rules in the root
OMakefile, but I'm pretty sure that if I were in a subdir, trying to
rebuild part of the tree, this trick would fail.
So, is there a nice way to do this more smartly?
Not a big issue -- just would like all the dependencies to be as
accurate as possible =)
Jonathan
More information about the Omake
mailing list