GNU error for show only

Is it possible to configure GNU make only to display an error. make --no-print-directorysuppresses all incoming and outgoing messages. Similarly, I do not want to see " make[4]: Nothing to be done for install.". Just a build error.

thank.

+3
source share
1 answer

make -swill not print any of the commands (as if each command had a prefix @). If the commands themselves are print pins, try redirecting the standard output, but keep the standard error.

make -s >/dev/null

However, my recommendation would be to allow the whole way out, because it can be very useful to find out what is happening. Use a tool like colormake to make it more readable.

+6

All Articles