Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does "make check" do?

Tags:

makefile

I wonder in the installation process of configure, make, make check and make install, what does make check do? Thanks!

like image 378
Tim Avatar asked Nov 14 '09 20:11

Tim


People also ask

What does make test command do?

This command tests various parts of samba code base to ensure the correctness of the functionality. It uses the test framework built in samba code base to perform hundreds of tests.

How does make work?

The make utility requires a file, Makefile (or makefile ), which defines set of tasks to be executed. You may have used make to compile a program from source code. Most open source projects use make to compile a final executable binary, which can then be installed using make install .

What is makefile target?

A simple makefile consists of “rules” with the following shape: target … : prerequisites … recipe … … A target is usually the name of a file that is generated by a program; examples of targets are executable or object files. A target can also be the name of an action to carry out, such as ' clean ' (see Phony Targets).

What is a makefile in Linux?

Makefile is a program building tool which runs on Unix, Linux, and their flavors. It aids in simplifying building program executables that may need various modules. To determine how the modules need to be compiled or recompiled together, make takes the help of user-defined makefiles.


1 Answers

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 make check target that runs post-build tests in the build directory, so make check can be used frequently on packages distributed from the FSF. Other projects will sometimes follow this convention as well.

like image 73
DigitalRoss Avatar answered Sep 20 '22 17:09

DigitalRoss