上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 104 下一页
摘要: 继续翻译6.3 Advanced Features for Reference to Variables================================================This section describes some advanced features you can use to referencevariables in more flexible ways.6.3.1 Substitution References-----------------------------A "substitution reference" sub 阅读全文
posted @ 2012-10-03 17:13 健哥的数据花园 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 继续翻译6.2 The Two Flavors of Variables================================There are two ways that a variable in GNU `make' can have a value; wecall them the two "flavors" of variables. The two flavors aredistinguished in how they are defined and in what they do when expanded. The first flavo 阅读全文
posted @ 2012-10-03 14:27 健哥的数据花园 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 继续翻译6.1 Basics of Variable References=================================To substitute a variable's value, write a dollar sign followed by thename of the variable in parentheses or braces: either `$(foo)' or`${foo}' is a valid reference to the variable `foo'. This specialsignificance of 阅读全文
posted @ 2012-10-03 11:01 健哥的数据花园 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 继续翻译6 How to Use Variables**********************A "variable" is a name defined in a makefile to represent a string oftext, called the variable's "value". These values are substituted byexplicit request into targets, prerequisites, recipes, and other partsof the makefile. (In 阅读全文
posted @ 2012-10-03 10:19 健哥的数据花园 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.9 Using Empty Recipes=======================It is sometimes useful to define recipes which do nothing. This is donesimply by giving a recipe that consists of nothing but whitespace. Forexample: target: ;defines an empty recipe for `target'. You could also use a linebeginning with a reci... 阅读全文
posted @ 2012-10-02 15:27 健哥的数据花园 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 To use the canned sequence, substitute the variable into the recipeof a rule. You can substitute it like any other variable (*note Basicsof Variable References: Reference.). Because variables defined by`define' are recursively expanded variables, all the variablereferences you wrote inside 阅读全文
posted @ 2012-10-02 14:48 健哥的数据花园 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.8 Defining Canned Recipes===========================When the same sequence of commands is useful in making various targets,you can define it as a canned sequence with the `define' directive, andrefer to the canned sequence from the recipes for those targets. Thecanned sequence is actually 阅读全文
posted @ 2012-10-02 14:09 健哥的数据花园 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.7.4 The `--print-directory' Option------------------------------------If you use several levels of recursive `make' invocations, the `-w' or`--print-directory' option can make the output a lot easier tounderstand by showing each directory as `make' starts processing it anda 阅读全文
posted @ 2012-10-02 13:10 健哥的数据花园 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 A similar variable `MFLAGS' exists also, for historicalcompatibility. It has the same value as `MAKEFLAGS' except that itdoes not contain the command line variable definitions, and it alwaysbegins with a hyphen unless it is empty (`MAKEFLAGS' begins with ahyphen only when it begins 阅读全文
posted @ 2012-10-02 12:37 健哥的数据花园 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 If you do not want to pass the other flags down, you must change thevalue of `MAKEFLAGS', like this: subsystem: cd subdir && $(MAKE) MAKEFLAGS= The command line variable definitions really appear in the variable`MAKEOVERRIDES', and `MAKEFLAGS' contains a reference to this va 阅读全文
posted @ 2012-10-02 10:33 健哥的数据花园 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 104 下一页