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.




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to