[Omake] Recursive invocation of omake
Benjamin Pierce
bcpierce at cis.upenn.edu
Wed Jun 7 07:34:59 PDT 2006
Partially answering my own question... :-)
> One specific question that I'm wondering about is when it is good
> to invoke omake recursively.
>
> In my current tangle of (gnu) makefiles, when I do 'make X' in the
> top-level directory (where X is 'all', 'clean', etc.), it does a
> little bit of work there and then does '$(MAKE) -C DIR X' for every
> sub-directory DIR; the same process then repeats for sub-sub-
> directories, and so on.
>
> Is this a good way to set things up with omake too? Or is there
> another way that uses just a single omake process? Is running
> multiple omakes going to be much less efficient than multiple makes
> (because each one is loading the OMakefiles of the whole project),
> or is this not a big deal?
Looking at the OMakefiles for OMake itself, I discovered that if both
the root OMakefile and some subdirectory's OMakefile contain clean:
targets, then
1) doing 'make clean' in the root dir will execute them both (in
the appropriate directories)
2) doing 'make clean' in the subdirectory will execute just its
local one.
This is exactly the behavior I wanted, so that problem is solved.
However, this makes me realize that there is still quite a bit I
don't understand about OMake's view of a multi-directory project -- I
don't have a model that would have allowed me to predict both (1) and
(2). Can someone explain?
Thanks!
- Benjamin
More information about the Omake
mailing list