上一页 1 ··· 85 86 87 88 89 90 91 92 93 ··· 104 下一页
摘要: 继续翻译 * A "directive" is an instruction for `make' to do something special while reading the makefile. These include: * Reading another makefile (*note Including Other Makefiles: Include.). ... 阅读全文
posted @ 2012-09-14 08:38 健哥的数据花园 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 * A "variable definition" is a line that specifies a text string value for a variable that can be substituted into the text later. The simple makefile example shows a variable definition for `objects' as a list of all object files (*note Variables Make Makefiles Simpler: V... 阅读全文
posted @ 2012-09-14 08:29 健哥的数据花园 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 * An "explicit rule" says when and how to remake one or more files, called the rule's "targets". It lists the other files that the targets depend on, called the "prerequisites" of the target, and may also give a recipe to use to create or update the targets. *N 阅读全文
posted @ 2012-09-14 08:19 健哥的数据花园 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 继续翻译3 Writing Makefiles ******************* The information that tells `make' how to recompile a system comes from reading a data base called the "makefile". 3.... 阅读全文
posted @ 2012-09-14 08:07 健哥的数据花园 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 继续翻译A rule such as this should not be placed at the beginning of the makefile, because we do not want it to run by default! Thus, in theexample makefile, we want the rule for `edit', which recompiles the editor, to remain the default goal. Since `c... 阅读全文
posted @ 2012-09-13 17:32 健哥的数据花园 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 In practice, we might want to write the rule in a somewhat more complicated manner to handle unanticipated situations. We would dothis: .PHONY : clean clean : -rm edit $(object... 阅读全文
posted @ 2012-09-13 17:25 健哥的数据花园 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 继续翻译2.7 Rules for Cleaning the Directory ==================================== Compiling a program is not the only thing you might want to write rules for. Makefiles commonly tell how to do a few other things besidescompiling a pr... 阅读全文
posted @ 2012-09-13 17:10 健哥的数据花园 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 继续翻译Here `defs.h' is given as a prerequisite of all the object files;`command.h' and `buffer.h' are prerequisites of the specific objectfiles listed for them. Whether this is better is a matter of taste: it is more compact, but some people dislike it... 阅读全文
posted @ 2012-09-13 16:55 健哥的数据花园 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 继续翻译2.6 Another Style of Makefile ============================= When the objects of a makefile are created only by implicit rules, an alternative style of makefile is possible. In this style of makefile,you group entries by their... 阅读全文
posted @ 2012-09-13 16:25 健哥的数据花园 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 继续翻译This is how we would write the makefile in actual practice. (The complications associated with `clean' are described elsewhere. See *note Phony Targets::, and *note Errors in Recipes: Errors.) Because implicit rules are so convenient, they are ... 阅读全文
posted @ 2012-09-13 16:19 健哥的数据花园 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 85 86 87 88 89 90 91 92 93 ··· 104 下一页