在学 unix 的 make 命令,其中:
# 加 @ 符号
Makefile:
hello: ; @echo "hello"
输出:
$ make
hello
# 不加 @
$ make
echo "hello"
hello
为啥捏
# 加 @ 符号
Makefile:
hello: ; @echo "hello"
输出:
$ make
hello
# 不加 @
$ make
echo "hello"
hello
为啥捏
1
churchmice Jul 23, 2014 makefile里面的@是用来suppress command的
不加@会把要执行的command也打出来,洁癖患者可以加@让这个command不打出来 顺便这是makefile的东西,不是unix的 |