Overview:Based on the instructions of the makefile.in file in the source package, the Configure script checks the current system environment and configuration options, generates Makefile files in the current directory (as well as other files that this article does not care about), and then makes the make program according to the Makefile in the current directory. The instructions for the file compile the source code into a binary file, and finally move the binaries (that is, install) to the specified place (still as indicated by the Makefile file).Configure process:The main purpose of this phase is to generate the Makefile file, which is the most critical stage of the operation, and basically all the individual adjustments that can be made to the installation process are focused on this step. The Configure script can affect all content in Makefile, including Makefile rules and Makefile variables. Configure script parameters, the most common is--help, you can tell how to use the Configure option. Make and makefile:makefile contain all of the rules and objectives, while make is the tool that interprets the makefile rules in order to accomplish the goal. The makefile rule contains dependencies between files and all required commands for updating this rule. Take Ngx's makefile as an example: default defaults to create binary files clean clears the files generated during the make process in the current directory. It cannot delete the configuration file for the package, nor can it delete the files created when the build. Install completes the program compilation and copies the final executable program, library files, etc. to the specified directory. This type of installation generally does not perform strip operations on the executable program.Make install process:First look at make's command-line syntax: makes [options] [targets] can be seen from the making command line syntax, targets should be included check and Install,install is to move (install) binary files to the specified place ( Must follow the instructions of the Makefile file).
Deep understanding of Linux source installation kick