We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cae779 commit 2c4b60cCopy full SHA for 2c4b60c
source/_posts/utils/make.md
@@ -14,6 +14,14 @@ target ... : prerequisites ...
14
15
<!--more-->
16
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
+
25
# Make 基本原理
26
27
## Static Pattern Rules
@@ -31,8 +39,6 @@ target-pattern : prereq-patterns
31
39
...
32
40
```
33
41
34
-
35
36
42
# Make 常用参数
37
43
38
44
## -d, --debug=FLAGS
0 commit comments