向Makefile添加注释 [英] Adding comments to Makefile
本文介绍了向Makefile添加注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Makefile
中添加注释(带有回显),以便在运行时将其打印出来?
How do I add comments (with echo) in a Makefile
so that they're printed when ran?
推荐答案
您应该使用
target:
@echo "Building!"
注意@
,它告诉Make不显示命令本身.没有这个,输出将如下所示:
Note the @
, which tells Make not to display the command itself. Without this the output would look like:
echo "Building!"
Building!
这篇关于向Makefile添加注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文