[Omake] .PHONY rules in subdirs

Tom Murray yozhik at computer.org
Wed Mar 28 18:44:25 PDT 2007


Hi--

I'm trying to define a set of default (phony) targets to be active in every
subdirectory of my project, a la automake. For example, I want "omake clean"
to execute some general cleaning code, and I want to be able to define this
once in the root, and not have to copy the definition to subdirectories.

Thus far, I am unable to get this to work, and reading the explanation about
the hierarchy of .PHONY targets, it seems I cannot do it. I find the current
implementation of this a bit strange: When I type "omake clean" in a
subdirectory, it is clearly using the top-level clean rule in some way,
because the invocation does not fail. It just does not invoke the target's
commands.

Is there some other mechanism I should be using to achieve what I want to
do? I tried nasty hacks of this sort: use BUILD_BEGIN to call a function
which defines the clean rule, but this runs into the "Non digestable value"
issue. Must I call an "installMySpecialTargets()" function at the end of
each OMakefile? Please say it ain't so!

Thanks for your help...

tm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.metaprl.org/pipermail/omake/attachments/20070328/59fa61e7/attachment.html


More information about the Omake mailing list