上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 104 下一页
摘要: 继续翻译 After the first expansion phase the prerequisites list of the 'myfile' target will be `onefile' and `$(TWOVAR)'; the first (unescaped) variable reference to ONEVAR is expanded, while the second (escaped) variable reference is simply unescaped, without being recognized as a varia 阅读全文
posted @ 2012-09-17 11:56 健哥的数据花园 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 If that special target is defined then in between the two phases mentioned above, right at the end of the read-in phase, all the prerequisites of the targets defined after the special target are expanded a _second time_. In most circumstances this secondary expansion will have no effect, ... 阅读全文
posted @ 2012-09-17 11:07 健哥的数据花园 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 继续翻译3.8 Secondary Expansion ======================= In the previous section we learned that GNU `make' works in two distinct phases: a read-in phase and a target-update phase (*note How `make' Reads a Makefile: Reading Makefiles.... 阅读全文
posted @ 2012-09-17 10:56 健哥的数据花园 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 继续翻译Rule Definition --------------- A rule is always expanded the same way, regardless of the form: IMMEDIATE : IMMEDIATE ; DEFERRED DEFERRED ... 阅读全文
posted @ 2012-09-17 10:49 健哥的数据花园 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 继续翻译Conditional Directives ---------------------- Conditional directives are parsed immediately. This means, for example, that automatic variables cannot be used in conditional directives, as automatic variables are not set until... 阅读全文
posted @ 2012-09-17 10:43 健哥的数据花园 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 继续翻译Variable Assignment ------------------- Variable definitions are parsed as follows: IMMEDIATE = DEFERRED IMMEDIATE ?= DEFERRED ... 阅读全文
posted @ 2012-09-17 10:36 健哥的数据花园 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 It's important to understand this two-phase approach because it has a direct impact on how variable and function expansion happens; this is often a source of some confusion when writing makefiles. Here we will present a summary of the phases in which expansion happens for different construc 阅读全文
posted @ 2012-09-17 10:28 健哥的数据花园 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 继续翻译3.7 How `make' Reads a Makefile =============================== GNU `make' does its work in two distinct phases. During the first phase it reads all the makefiles, included makefiles, etc. and internalizes all the variables a... 阅读全文
posted @ 2012-09-17 10:19 健哥的数据花园 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 The way this works is that the pattern rule has a pattern of just `%', so it matches any target whatever. The rule specifies a prerequisite `force', to guarantee that the recipe will be run even if the target file already exists. We give the `force' target an empty recipe to prevent 阅读全文
posted @ 2012-09-17 09:19 健哥的数据花园 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 For example, if you have a makefile called `Makefile' that says howto make the target `foo' (and other targets), you can write a makefile called `GNUmakefile' that contains: foo: frobnicate > foo ... 阅读全文
posted @ 2012-09-17 08:43 健哥的数据花园 阅读(357) 评论(0) 推荐(0) 编辑
上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 104 下一页