摘要:
为了学习 .EXPORT_ALL_VARIABLES ,查阅了如下的文章:http://blog.csdn.net/zplove003/article/details/7066595这个文章写得很棒,演示了makefile 的嵌套调用。这里我把其中的 顶层 Makefile改一下,用 .EXPORT_ALL_VARIABLES 来代替。//顶层目录下的Makeflie文件cc=gcc SUBD... 阅读全文
摘要:
继续翻译`.EXPORT_ALL_VARIABLES' Simply by being mentioned as a target, this tells `make' to export all variables to child processes by default. *Note Communicating Variables to a Sub-`make': Variables/Recursion.通过简单地声明 .EXPORT_ALL_VARIABLES ,可以告诉 make 来到出所有的变量给 子进程。*Note Communicating Varia. 阅读全文
摘要:
继续翻译`.SILENT' If you specify prerequisites for `.SILENT', then `make' will not print the recipe used to remake those particular files before executing them. The recipe for `.SILENT' is ignored. If mentioned as a target with no prerequisites, `.SILENT' says not to print any recipe 阅读全文
摘要:
继续翻译`.LOW_RESOLUTION_TIME' If you specify prerequisites for `.LOW_RESOLUTION_TIME', `make' assumes that these files are created by commands that generate low resolution time stamps. The recipe for the `.LOW_RESOLUTION_TIME' target are ignored. The high resolution file time stamps of 阅读全文
摘要:
上例子:.IGNORE: gao.3LIBS =gao.1 gao.2 gao.3all:$(LIBS) @echo finalgao.1: gao.2 @echo gao.1gao.2: gao.3 ./me.o @echo gao.2gao.3: @echo gao.3运行结果:gao.3./me.ohellomake:***[gao.2] Error 2此时由于仅忽略 gao.3 中的错误,所以在 gao.2 中失败退出了。结束 阅读全文