“make check”是什么意思?做?
我想知道在configure
、make
、make check
和make install
的安装过程中,是做什么的make check
做什么?谢谢!
I wonder in the installation process of configure
, make
, make check
and make install
, what does make check
do? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
严格来说,它并不一定有什么作用。
如果 Makefile 有一个名为 check 的目标,那么 make check 将“构建”该目标。它通常是一个虚假目标,这意味着它是一个 make 脚本命令,而不是创建的名为“check”的文件。
gnu 项目建议所有 GNU 软件应包含一组 20 个标准目标(来源:https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html)。
check
目标(通过输入make check
运行)是这些标准目标之一,在上面的源代码中定义为:其他项目(不属于 GNU 的一部分)有时也会遵循此约定,或者至少实现这些目标的子集。
Strictly speaking, it doesn't necessarily do anything.
If a Makefile has a target named check, then make check will "build" that target. It's typically a phony target, meaning that it is a make-scripted command rather than a file named "check" that gets created.
The gnu project advises that all GNU software should include a set of 20 standard targets (source: https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html).
The
check
target (which is run by typingmake check
) is one of those standard targets and is in the above source defined as:Other projects (not part of GNU) will sometimes follow this convention as well, or at least implement a subset of these targets.
根据 GNU Make 手册,它执行 self测试此 makefile 构建的程序。
According to the GNU Make manual, it performs self tests on the program this makefile builds.
make check
是 makefile 的命令。它执行 makefile 定义的任何操作。听起来好像了解一下 makefile 的背景会很好。 这是我的学校用于编程课程的教程。以下是一些很好的引用:
make check
is a command to a makefile. It does whatever the makefile defines it to do.It sounds like a little background on makefiles would be good. This is a tutorial that my school uses for a programming course. Here are some good quotes:
最常见的地方是使用 automake 时。 Automake 的功能使得(没有双关语)生成一系列测试用例并生成漂亮的结果摘要相对简单。有关详细信息,请参阅此处:
The most common place that you will see this is when automake is used. Automake has features that make (no pun intended) it relatively simple to generate a series of test cases and produce a pretty summary of the results. For more info, see here: