上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 104 下一页
摘要: 继续翻译 The TARGET-PATTERN and PREREQ-PATTERNS say how to compute theprerequisites of each target. Each target is matched against theTARGET-PATTERN to extract a part of the target name, called the "stem".This stem is substituted into each of the PREREQ-PATTERNS to make theprerequisite names ( 阅读全文
posted @ 2012-09-26 08:35 健哥的数据花园 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 继续翻译4.12 Static Pattern Rules=========================Static pattern rules are rules which specify multiple targets andconstruct the prerequisite names for each target based on the targetname. They are more general than ordinary rules with multiple targetsbecause the targets do not have to have ide. 阅读全文
posted @ 2012-09-26 07:53 健哥的数据花园 阅读(218) 评论(0) 推荐(0) 编辑
摘要: objects = foo.o bar.oall: $(objects)$(objects): %.o : %.c $(CC) -c $< -o $@$(objects): %.o : %.c 表示, 每个.o 文件依赖于 同名的 .c 文件。 阅读全文
posted @ 2012-09-25 17:47 健哥的数据花园 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 继续翻译4.11 Multiple Rules for One Target==================================One file can be the target of several rules. All the prerequisitesmentioned in all the rules are merged into one list of prerequisites forthe target. If the target is older than any prerequisite from any rule,the recipe is exe.. 阅读全文
posted @ 2012-09-25 17:33 健哥的数据花园 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 继续翻译4.10 Multiple Targets in a Rule===============================A rule with multiple targets is equivalent to writing many rules, eachwith one target, and all identical aside from that. The same recipeapplies to all the targets, but its effect may vary because you cansubstitute the actual target . 阅读全文
posted @ 2012-09-25 16:32 健哥的数据花园 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 继续翻译`.ONESHELL' If `.ONESHELL' is mentioned as a target, then when a target is built all lines of the recipe will be given to a single invocation of the shell rather than each line being invoked separately (*note Recipe Execution: Execution.).`.POSIX' If `.POSIX' is mentioned as ... 阅读全文
posted @ 2012-09-25 16:11 健哥的数据花园 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 需要声明的是 gnu make 的 3.81 中尚未包含 .ONESHELL 功能。3.82 中方有此功能。如下的例子是在安装了 gnu make 3.82 后验证成功的:上例子:#.NOTPARALLEL:#.ONESHELL:.SECONDEXPANSION:.PHONY: allall: a a: t1=abc;export t1 @echo $$t1;此时,make 的结果显示:t1=abc; export t1而把 .ONESHELL 前面的注释去掉后,#.NOTPARALLEL:.ONESHELL:.SECONDEXPANSION:.PHONY: alla... 阅读全文
posted @ 2012-09-25 15:45 健哥的数据花园 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 运行yum 的时候,如果出现 Another app is currently holding the yum lock...之类,要运行 :rm -f /var/run/yum.pid。 阅读全文
posted @ 2012-09-25 15:14 健哥的数据花园 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 上例子事先准备好三个脚本:a01.sh b01.sh c01.sh:脚本内容如下, 即每睡眠一秒钟后再输出内容:a01.shfor ((i=0;i<10;i++));do @echo "a01..." $i; sleep 1;done;b01.shfor ((i=0;i<10;i++));do @echo "b01..." $i; sleep 1;done;c01.shfor ((i=0;i<10;i++));do @echo "c01..." $i; sleep 1;done;makefile 的内容如下:.PHO 阅读全文
posted @ 2012-09-25 14:22 健哥的数据花园 阅读(1868) 评论(0) 推荐(0) 编辑
摘要: 继续翻译`.NOTPARALLEL' If `.NOTPARALLEL' is mentioned as a target, then this invocation of `make' will be run serially, even if the `-j' option is given. Any recursively invoked `make' command will still run recipes in parallel (unless its makefile also contains this target). Any pr. 阅读全文
posted @ 2012-09-25 12:56 健哥的数据花园 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 104 下一页