Skip to content

Commit 2c4b60c

Browse files
committed
utils: make rules
Signed-off-by: Luc Ma <[email protected]>
1 parent 2cae779 commit 2c4b60c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/_posts/utils/make.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ target ... : prerequisites ...
1414

1515
<!--more-->
1616

17+
- **target ...** 说明在一条规则里 target 可以有多个
18+
- **prerequisites** 可以为空
19+
- **recipe** 可以为空, 这时 make 相应的 target 会提示
20+
- `Nothing to be done for 'target'.`
21+
- 可以通过 `;` 分号显示地指出 recipe 是空
22+
- `target: ;`
23+
- 如果 make 命令行没有指定任何目标,make 会将 Makefile 里解析出来的**第一个目标**作为默认目标
24+
1725
# Make 基本原理
1826

1927
## Static Pattern Rules
@@ -31,8 +39,6 @@ target-pattern : prereq-patterns
3139
...
3240
```
3341

34-
35-
3642
# Make 常用参数
3743

3844
## -d, --debug=FLAGS

0 commit comments

Comments
 (0)