help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppress automatic rule printing


From: Eric Reischer
Subject: Re: Suppress automatic rule printing
Date: Wed, 19 Jan 2011 13:59:55 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Iceowl/1.0b1 Icedove/3.0.11

The best way (in my opinion) to accomplish this would to have Make use the $(RM) variable, if present. That way, if you wanted to suppress that command from being printed, you could set "RM := @rm -f" as a rule.

-E

On 01/19/2011 01:41 PM, Mark Galeck (CW) wrote:
Well, it is not what he was asking, but... maybe an acceptable solution, useful in other 
situations, would be, to filter the output of make through some Perl script.  I do this 
myself as a routine matter.  When people ask, why do you have a wrapper make.bat and not 
just call "make.exe" directly, I say, calling programs directly is like riding 
a horse without a saddle, it is possible..., but painful and not fun.

So I have a wrapper, in which I prepare the call to make, and then take the 
output out of make and do whatever I want with it, for example, if make is 
called with parallel option, I save the errors output for the end, or 
suppress/interpret any error messages which my users find too cryptic.

Mark

(...)
Is there a way to suppress printing out built-in commands that GNU-make
executes?
a way to suppress printing out this command as its being executed?

There is no way, short of editing the code, to silence that message
unfortunately.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]