July 23th Thursday (七月 二十三日 木曜日)
来源:互联网 发布:node.js react区别 编辑:程序博客网 时间:2024/05/12 15:45
Multiple Targets in a Rule
A rule with multiple targets is equivalent to writing many rules, each with one target, and all identical aside from that. The same
commands apply to all the targets, but their effects may vary because you can substitute the actual target name into the command using
`$@'. The rule contributes the same dependencies to all the targets also.
This is useful in two cases.
You want just dependencies, no commands. For example:
kbd.o command.o files.o: command.h
gives an additional dependency to each of the three object files mentioned.
Similar commands work for all the targets. The commands do not need to be absolutely identical, since the automatic variable `$@'
can be used to substitute the particular target to be remade into the commands. For example:
bigoutput littleoutput : text.g
generate text.g -$(subst output,,$@) > $@
is equivalent to
bigoutput : text.g
generate text.g -big > bigoutput
littleoutput : text.g
generate text.g -little > littleoutput
Here we assume the hypothetical program generate makes two types of output, one if given `-big' and one if given `-little'.
Suppose you would like to vary the dependencies according to the target, much as the variable `$@' allows you to vary the commands.
You cannot do this with multiple targets in an ordinary rule, but you can do it with a static pattern rule.
- July 23th Thursday (七月 二十三日 木曜日)
- July 23th Monday (七月 二十三日 月曜日)
- 2008 July 23th Wednesday (七月 二十三日 水曜日)
- July 26th Thursday (七月 二十六日 木曜日)
- 2008 July 24th Thursday (七月 二十四日 木曜日)
- July 12th Thursday (七月 十二日 木曜日)
- July 19th Thursday (七月 十九日 木曜日)
- July 9th Thursday (七月 九日 木曜日)
- July 16th Thursday (七月 十六日 木曜日)
- August 23th Thursday (八月 二十三日 木曜日)
- 2008 October 23th Thursday (十月 二十三日 木曜日)
- April 23th Thursday (四月 二十三日 木曜日)
- July 13th Friday (七月 十三日 金曜日)
- July 5th Thursday (七月 五日 木曜日)
- 2008 July 3th Thursday (七月 三日 木曜日)
- 2008 July 10th Thursday (七月 十日 木曜日)
- 2008 July 17th Thursday (七月 十七日 木曜日)
- 2008 July 31th Thursday (七月 三十一日 木曜日)
- July 21th Tuesday (七月 二十一日 火曜日)
- July 22th Wednesday (七月 二十二日 水曜日)
- 电脑高手常用的按钮
- ora-01830错误:日期格式图片在转换整个输入字符串之前结束
- Detection of SQL Injection and Cross-site Scripting Attacks
- July 23th Thursday (七月 二十三日 木曜日)
- July 24th Friday (七月 二十四日 金曜日)
- July 27th Monday (七月 二十七日 月曜日)
- DEBUG命令使用解析一
- C#做外挂的常用API,本人用了很久,基本没发现问题
- DEBUG命令使用解析二
- July 28th Tuesday (七月 二十八日 火曜日)
- Jquery的代码简写
- July 29th Wednesday (七月 二十九日 水曜日)