[Omake] phony targets from other directories

Aleksey Nogin nogin at metaprl.org
Fri Mar 21 09:19:08 PDT 2008


Jared,

This feature was added a while back. Just use "omake .PHONY/dir1/all". 
See also 
http://omake.metaprl.org/manual/omake-rules.html#section:PHONY-hierarchy

Aleksey

On 21.03.2008 00:06, Jared C. Davis wrote:

> Hi,
> 
> Here is a very minor, zero-priority feature request.
> 
> It would be nice if a .PHONY target could be referred to from an
> external directory.
> 
> For example, if root/dir1/OMakefile introduces a .PHONY target called
> all, then running "omake dir1/all" from root fails with the message
> "do not know how to build target," even though running "omake all"
> from within root/dir1 succeeds.
> 
> An easy workaround is to introduce a non-PHONY target which depends on
> "all" and otherwise merely touches a file.  I find myself frequently
> using these targets to build certain directories while excluding
> others.  (This is much faster for me than building the desired
> directories sequentially, because there is a lot of parallelism
> between the directories.)   But this seems a bit inelegant since it
> means more files floating around and extra stuff in OMakefiles.
> 
> I am using OMake 0.9.8.5 (release 3), in case that matters for anything.
> 
> Thanks!
> 
> Jared
> 



More information about the Omake mailing list