Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the install step defined in the makefile?


Asked by Emmy Finley on Dec 07, 2021 FAQ



Since the install step is also defined in the Makefile, where the software is installed can change based on options passed to the configure script, or things the configure script discovered about your system.
One may also ask,
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 .
Consequently, make follows the instructions of the Makefile and converts source code into binary for the computer to read. make install installs the program by copying the binaries into the correct places as defined by./configure and the Makefile. Some Makefiles do extra cleaning and compiling in this step.
Accordingly,
If you have prepared the Makefile with name "Makefile", then simply write make at command prompt and it will run the Makefile file. But if you have given any other name to the Makefile, then use the following command −. make -f your-makefile-name Makefile - Example. This is an example of the Makefile for compiling the hello program.
Likewise,
Macros are normally defined inside the makefile itself, but they can be specified by calling make with themacro definition. for example, make CC=c89. Command-line definitions like this override define s in the makefile.