自动生成默认 makefile 时的鸡蛋和鸡肉问题
Egg and chicken problem when auto generate default makefile
GMU Make 官方文档下一刻看不懂(3.5 How Makefiles Are Remade)
If you do not specify any makefiles to be read with ‘-f’ or ‘--file’
options, make will try the default makefile names; see What Name to
Give Your Makefile. Unlike makefiles explicitly requested with ‘-f’ or
‘--file’ options, make is not certain that these makefiles should
exist. However, if a default makefile does not exist but can be
created by running make rules, you probably want the rules to be run
so that the makefile can be used.
如果我们不使用 -f 指定任何 makefile 并且存在 none 个默认 makefile,则可以从哪个 make 规则创建默认 makefile?
谁能举例说明这种情况?
过去,默认的 makefile 可以根据自动从版本控制系统检出的内置规则生成。 GNU make 具有从 RCS 和 SCCS 检出的内置规则,但现在没有人再使用这些版本控制系统了。
激活此功能的一种方法是创建一个空目录,并设置指向 RCS 或 SCCS 存储库的符号链接。设置符号链接后,make 将使用正确的命令(co
用于 RCS,get
用于 SCCS)检查文件的最新版本。
底线,恕我直言,该功能不再相关。
GMU Make 官方文档下一刻看不懂(3.5 How Makefiles Are Remade)
If you do not specify any makefiles to be read with ‘-f’ or ‘--file’ options, make will try the default makefile names; see What Name to Give Your Makefile. Unlike makefiles explicitly requested with ‘-f’ or ‘--file’ options, make is not certain that these makefiles should exist. However, if a default makefile does not exist but can be created by running make rules, you probably want the rules to be run so that the makefile can be used.
如果我们不使用 -f 指定任何 makefile 并且存在 none 个默认 makefile,则可以从哪个 make 规则创建默认 makefile? 谁能举例说明这种情况?
过去,默认的 makefile 可以根据自动从版本控制系统检出的内置规则生成。 GNU make 具有从 RCS 和 SCCS 检出的内置规则,但现在没有人再使用这些版本控制系统了。
激活此功能的一种方法是创建一个空目录,并设置指向 RCS 或 SCCS 存储库的符号链接。设置符号链接后,make 将使用正确的命令(co
用于 RCS,get
用于 SCCS)检查文件的最新版本。
底线,恕我直言,该功能不再相关。