海王  

http://bbs.chinaunix.net/thread-1916415-1-1.html 

linux源码的顶级Makefile中有这么一句

$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
        $(Q)@:
请问命令中的@:是什么意思啊 问过许多人 documention里边也没有

 

没啥意思,@ 一般用来关闭命令的回显

如果Q 取值为 @,那命令部分就是 @@:,不回显
如果Q没有取值,那命令部分就是 @:,一样不回显

所以,测试看这样可不可以 :)  

$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
        $(Q)@: In fact, nothing to do here.
posted on 2015-03-14 15:40  海王  阅读(7411)  评论(0编辑  收藏  举报