×
Makefile为什么需要Makefile?Makefile 宏Makefile 定义依赖性Makefile 定义规则Makefile 自定义后缀规则Makefile 指令Makefile includeMakefile 文件重新编译Makefile 其他功能makefile 例子

Makefile include


makefile include 指令

include指令告诉make暂停读取当前makefile文件和读取一个或多个其它的makefile,然后再继续。该指令是一行在makefile中,看起来像这样:
include filenames...

文件名可以包含shell文件名模式。允许额外的空格开头的行被忽略,但不允许一个标签。例如,如果有三个`.mk',`.mk' files, `a.mk', `b.mk', and `c.mk', and $(bar) 扩展到bash中,然后下面的表达式。

include foo *.mk $(bar)

is equivalent to

include foo a.mk b.mk c.mk bish bash

当MAKE处理包括指令,它包含的makefile暂停读取,并从各列出文件中依次读取。当这个过程完成,使读取指令出现在其中的makefile的恢复。


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)