Make, clean and their combined commands for linux commands

Source: Internet
Author: User

In linux, make, clean, and their combined commands first look at what is makefilemakefile, which defines a series of rules to specify, which files need to be compiled first, and which files need to be compiled later, which files need to be re-compiled, or even perform more complex functional operations, because makefile is like a Shell script, which can also execute operating system commands. The benefit of makefile is "automatic compilation". Once written, only one make command is required, and the entire project is fully automatically compiled, which greatly improves the efficiency of software development. Make is a command tool that explains commands in makefile. Generally, most ides use this command, such as make in Delphi and nmake in Visual C ++, GNU make in Linux. It can be seen that makefile is a compilation method in Engineering. Make compiles source code, connects, generates target files, and executable files based on Makefile. Www.2cto.com make clean clears the object files generated by the last make command (Files suffixed with ". o") and executable files. Make install installs the compiled executable files to the system directory, which is generally the/usr/local/bin directory. Make dist generates the release package ). This command will pack executable files and related files into a tar.gz compressed file for software release. A file named "package-version.tar.gz" will be generated in the current directory. PACKAGE and VERSION are the AM_INIT_AUTOMAKE (PACKAGE, VERSION) defined in configure. in ). Www.2cto.com make distcheck generates and tests the release package to confirm the correctness of the release package. This operation will automatically unbind the compressed package file, execute the configure command, and execute make to confirm that there is no error in compilation, and finally prompt that your software package is ready and can be released. Make distclean is similar to make clean, but it also deletes all files generated by configure, including Makefile files. Author: richerg85

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.