From c4a60d80f39f27746bc103d016e56d51b63af9d3 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Sat, 17 Dec 2022 13:07:38 +0000 Subject: [PATCH] doc: update make.md (#234) 01d238eaaba1b54ecfef474badf1bddf244ad104 --- CONTRIBUTORS.svg | 58 +++++++++++++++++++++++++----------------------- docs/make.html | 10 ++++----- index.html | 2 +- 3 files changed, 36 insertions(+), 34 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 5b0b91ff..aae52a86 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -3,7 +3,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="740" - height="208" + height="260" > @@ -64,59 +64,61 @@ + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/make.html b/docs/make.html index 52e8e71b..b8ca477d 100644 --- a/docs/make.html +++ b/docs/make.html @@ -32,7 +32,7 @@ Makefile 入门,为开发人员分享快速参考备忘单。">

包含 最重要概念、函数、方法等的 make 备忘单。 初学者的完整快速参考。

Makefile 入门

+

Makefile 入门

示例

a.txt: b.txt c.txt
@@ -50,11 +50,11 @@ Makefile 入门,为开发人员分享快速参考备忘单。">
 
 
 

文件命令

-

文件会以 GNUmakefile(不推荐使用)、Makefilemakefile 查找目录下的名称。

-

自定义文件名称

-
$ make target -f NAME
+

make命令会以 GNUmakefile(不推荐使用)、makefileMakefile(推荐使用)的顺序查找当前目录下的文件。

+

自定义文件路径

+
$ make target -f FILE
 
-

我们可以使用 -f NAME 来指定需要编译的文件名

+

我们可以使用 -f FILE 来指定makefile文件的路径

隐式生成

如果文件夹中没有 makefile 文件,只有 main.c 源文件,那么我们可以使用 make main.o 隐式生成链接文件

$ make main.o
diff --git a/index.html b/index.html
index 99766e74..1b894259 100644
--- a/index.html
+++ b/index.html
@@ -964,7 +964,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
© 2022 Kenny Wang. Updated on 2022/12/17 18:00:02
+
© 2022 Kenny Wang. Updated on 2022/12/17 21:06:50