Meaning of '@' in “@set -e” command in Mak

2019-07-22 06:01发布

问题:

This question already has an answer here:

  • What does @: (at symbol colon) mean in a Makefile? 2 answers

In Makefile, in commands of the form

all: @set -e; \ do more stuff

I know the set -e commands the shell to to exit on failure. What is the significance of the @ attached to set?

回答1:

In a Makefile, the @ symbol means that the command is not echoed to the screen when it is run.