Linux Makefile:为什么要包含/ config /%.conf总是内置?

时间:2015-09-17 00:43:35

标签: linux makefile

我正在使用Linux Makefile(4.2.0)。

如果我使用不存在的目标调用make,例如“make ABCDEF”,请始终重新制作目标: include / config /%。conf (第570行附近),其配方为“ make silentoldconfig ”。

以下是目标(第556行附近):

# Read in config
-include include/config/auto.conf

ifeq ($(KBUILD_EXTMOD),)
# Read in dependencies to all Kconfig* files, make sure to run
# oldconfig if changes are detected.
-include include/config/auto.conf.cmd

# To avoid any implicit rule to kick in, define an empty command
$(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;

# If .config is newer than include/config/auto.conf, someone tinkered
# with it and forgot to run make oldconfig.
# if auto.conf.cmd is missing then we are probably in a cleaned tree so
# we execute the config step to be sure to catch updated Kconfig files
include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
    $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig

我只是想知道为什么这个目标“ include / config /%。conf ”总是建成?甚至没有调用目标。

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

使用make -d查看规则执行的原因