GNU Make silent by default
问题 Is it possible to suppress command echoing by default from within the Makefile ? I know that running make in --silent mode will do it, as will prefixing every command with @ . I'm looking for a command or stanza I can include inside the Makefile, saving the trouble of littering everything with @ or having the user silence everything manually. 回答1: If you define the target .SILENT: , then make will not echo anything. It's usually best to guard the definition, so you can easily turn it off: