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.