Differences between make clean and make distclean

Source: Internet
Author: User

Differences between make clean and make distclean

Make clean only clears the previously compiled executable files and configuration files. Make distclean clears all generated files.

Makefile

Makefile conforming to the GNU makefiel Convention contains some basic pre-defined operations:

Make

Compile the source code, connect to generate the target file, and execute the file according to makefile.

Make clean

Clear the object files generated by the last make command (Files suffixed with ". O") and executable files.

Make install

Install the compiled executable files to the system directory, which is generally the/usr/local/bin directory.

Make Dist

Generate the release package file (distribution 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 ).

Make distcheck

Generate and test 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.

Make clean only clears the previously compiled executable files and configuration files. Make distclean clears all generated files.

Makefile

Makefile conforming to the GNU makefiel Convention contains some basic pre-defined operations:

Make

Compile the source code, connect to generate the target file, and execute the file according to makefile.

Make clean

Clear the object files generated by the last make command (Files suffixed with ". O") and executable files.

Make install

Install the compiled executable files to the system directory, which is generally the/usr/local/bin directory.

Make Dist

Generate the release package file (distribution 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 ).

Make distcheck

Generate and test 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.

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.