上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 104 下一页
摘要: 继续翻译5.3.2 Choosing the Shell------------------------The program used as the shell is taken from the variable `SHELL'. Ifthis variable is not set in your makefile, the program `/bin/sh' isused as the shell. The argument(s) passed to the shell are taken fromthe variable `.SHELLFLAGS'. The 阅读全文
posted @ 2012-09-28 17:02 健哥的数据花园 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 If `.ONESHELL' is provided, then only the first line of the recipewill be checked for the special prefix characters (`@', `-', and `+').Subsequent lines will include the special characters in the recipe linewhen the `SHELL' is invoked. If you want your recipe to start with o 阅读全文
posted @ 2012-09-28 15:08 健哥的数据花园 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.3.1 Using One Shell---------------------Sometimes you would prefer that all the lines in the recipe be passedto a single invocation of the shell. There are generally twosituations where this is useful: first, it can improve performance inmakefiles where recipes consist of many command lines, . 阅读全文
posted @ 2012-09-28 13:27 健哥的数据花园 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.3 Recipe Execution====================When it is time to execute recipes to update a target, they areexecuted by invoking a new subshell for each line of the recipe, unlessthe `.ONESHELL' special target is in effect (*note Using One Shell: OneShell.) (In practice, `make' may take short 阅读全文
posted @ 2012-09-28 12:10 健哥的数据花园 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.2 Recipe Echoing==================Normally `make' prints each line of the recipe before it is executed.We call this "echoing" because it gives the appearance that you aretyping the lines yourself. When a line starts with `@', the echoing of that line is suppressed.The `@' 阅读全文
posted @ 2012-09-28 09:10 健哥的数据花园 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.1.2 Using Variables in Recipes--------------------------------The other way in which `make' processes recipes is by expanding anyvariable references in them (*note Basics of Variable References:Reference.). This occurs after make has finished reading all themakefiles and the target is dete 阅读全文
posted @ 2012-09-27 17:29 健哥的数据花园 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 继续翻译 Sometimes you want to split a long line inside of single quotes, butyou don't want the backslash-newline to appear in the quoted content.This is often the case when passing scripts to languages such as Perl,where extraneous backslashes inside the script can change its meaningor even be a sy 阅读全文
posted @ 2012-09-27 14:49 健哥的数据花园 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.1.1 Splitting Recipe Lines----------------------------One of the few ways in which `make' does interpret recipes is checkingfor a backslash just before the newline. As in normal makefile syntax,a single logical recipe line can be split into multiple physical linesin the makefile by placing 阅读全文
posted @ 2012-09-27 14:04 健哥的数据花园 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5.1 Recipe Syntax=================Makefiles have the unusual property that there are really two distinctsyntaxes in one file. Most of the makefile uses `make' syntax (*noteWriting Makefiles: Makefiles.). However, recipes are meant to beinterpreted by the shell and so they are written using s 阅读全文
posted @ 2012-09-27 12:35 健哥的数据花园 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 继续翻译5 Writing Recipes in Rules**************************The recipe of a rule consists of one or more shell command lines to beexecuted, one at a time, in the order they appear. Typically, theresult of executing these commands is that the target of the rule isbrought up to date. Users use many dif... 阅读全文
posted @ 2012-09-27 10:58 健哥的数据花园 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 104 下一页