Home > Archive > Unix Programming > February 2005 > Disabling command output in a Makefile
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Disabling command output in a Makefile
|
|
| pocm@sat.inesc-id.pt 2005-02-19, 3:57 pm |
| Hi all,
What I wish to know although I don't know if it is possible is
disabling the output of a command. I nice example is:
all:
@echo THIS SHOULD NOT SHOW UP WHEN MAKE ALL IS RAN.
@ disables the output of the line itself, how can I disable the output
of the command ran?
Cheers,
Paulo Matos
| |
| Paul Pluzhnikov 2005-02-19, 3:57 pm |
| pocm@sat.inesc-id.pt writes:
> @ disables the output of the line itself, how can I disable the output
> of the command ran?
@echo THIS SHOULD NOT SHOW UP WHEN MAKE ALL IS RAN. >/dev/null 2>&1
Note that is generally a bad idea (TM): when something goes wrong
with the command that you "silenced", you'll have a hard time
finding out why you make doesn't work.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
| |
| pmatos 2005-02-19, 8:58 pm |
| Oh, nice solution... I though there would be a makefile char to use
instead of @ but anyway. It's always a solution. Well, there's no
problem in this case because it's to use during make clean, which
sometimes returns some verbose output. :)
Thanks,
Paulo Matos
|
|
|
|
|