摘要: 继续翻译 You may notice that the `export' and `unexport' directives work in`make' in the same way they work in the shell, `sh'. If you want all variables to be exported by default, you can use`export' by itself: exportThis tells `make' that variables which are not explicitly ment 阅读全文
posted @ 2012-10-01 17:42 健哥的数据花园 阅读(401) 评论(0) 推荐(0)
摘要: 继续翻译5.7.2 Communicating Variables to a Sub-`make'---------------------------------------------Variable values of the top-level `make' can be passed to the sub-`make'through the environment by explicit request. These variables aredefined in the sub-`make' as defaults, but do not overr 阅读全文
posted @ 2012-10-01 16:02 健哥的数据花园 阅读(431) 评论(0) 推荐(0)
摘要: 继续翻译5.7.1 How the `MAKE' Variable Works-----------------------------------Recursive `make' commands should always use the variable `MAKE', notthe explicit command name `make', as shown here: subsystem: cd subdir && $(MAKE) The value of this variable is the file name with whic 阅读全文
posted @ 2012-10-01 14:08 健哥的数据花园 阅读(315) 评论(0) 推荐(0)
摘要: 继续翻译5.7 Recursive Use of `make'===========================Recursive use of `make' means using `make' as a command in a makefile.This technique is useful when you want separate makefiles for varioussubsystems that compose a larger system. For example, suppose you havea subdirectory `subdi 阅读全文
posted @ 2012-10-01 14:07 健哥的数据花园 阅读(348) 评论(0) 推荐(0)
摘要: 继续翻译5.6 Interrupting or Killing `make'==================================If `make' gets a fatal signal while a shell is executing, it may deletethe target file that the recipe was supposed to update. This is doneif the target file's last-modification time has changed since `make'first 阅读全文
posted @ 2012-10-01 13:41 健哥的数据花园 阅读(218) 评论(0) 推荐(0)
摘要: 继续翻译5.5 Errors in Recipes=====================After each shell invocation returns, `make' looks at its exit status.If the shell completed successfully (the exit status is zero), the nextline in the recipe is executed in a new shell; after the last line isfinished, the rule is finished. If there 阅读全文
posted @ 2012-10-01 13:02 健哥的数据花园 阅读(379) 评论(0) 推荐(0)
摘要: 继续翻译 We will change how this aspect of `make' works if we find a betteralternative. In the mean time, you should not rely on any recipe usingstandard input at all if you are using the parallel execution feature;but if you are not using this feature, then standard input worksnormally in all recip 阅读全文
posted @ 2012-10-01 10:58 健哥的数据花园 阅读(201) 评论(0) 推荐(0)
摘要: 继续翻译5.4 Parallel Execution======================GNU `make' knows how to execute several recipes at once. Normally,`make' will execute only one recipe at a time, waiting for it to finishbefore executing the next. However, the `-j' or `--jobs' option tells`make' to execute many rec 阅读全文
posted @ 2012-10-01 10:15 健哥的数据花园 阅读(287) 评论(0) 推荐(0)