[Omake] Output verbosity

Aleksey Nogin anogin at hrl.com
Mon Jun 18 12:40:01 PDT 2007


On 18.06.2007 04:09, David Kågedal wrote:

> I have a couple of questions/requests regarding the output of omake.
> 
> 1) I'd like to see an option to only print the lines describing what
>    is build, i.e. the lines beginning with "- build" when running
>    omake -verbose.  From looking at the source, there doesn't seem to
>    exist any option to do that.

Right, I believe that currently the "-" and "+" lines are always on or 
off together (unless there is an "@" prefix in the command). Should be 
relatively easy to change - if you feel that it's important, please file 
an RFE in Bugzilla. You can disable the command output using 
"--output-only-errors".

> 2) Is there a make to produce output from a rule without triggering
>    the verbose output for that target (including "-" and "+" lines)?
>    I'm running with the default options.  I'd like to be able to add
>    the equivalent of a "@echo Building cool stuff" when running make
>    in silent mode.
> 
Yes - you can use the fact that the options are scoped and add a local 
override.

% cat OMakefile
.PHONY: foo bar
.DEFAULT: foo

section
     OMakeFlags(-s)
     bar:
         @echo This is bar

foo: bar
     @echo This is foo

% omake
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.0 sec)
This is bar
- build . <foo>
This is foo
*** omake: done (0.0 sec, 0/0 scans, 2/2 rules, 0/33 digests)

Aleksey
-- 
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA


More information about the Omake mailing list