What are make files - make install

I see these things on Linux, but what is this ?:

./configure make make install 

etc.

+7
linux makefile
source share
8 answers

make is part of the build system commonly used on systems like unix - binutils .

He looks at files that contain configuration information and build goals.

In particular -

  • ./configure is a script that sets up the build environment
  • make - calls make to build by default. Usually creates an application.
  • make install - calls make to build install . An application is usually installed.
+8
source share

./configure is a program that reviews your system configuration and creates some of the system dependencies for your program. make is a program that looks at your Makefile (which configure was probably created) and uses the rules there to create your program. Makefile can have several “goals” that are sets of rules to do different things - by default it is usually easy to compile and link your program. When you say make with no arguments, it runs the default target. When you say make install , you use the install target, which usually installs binaries or libraries created by the default target in their final locations. clean is another common Makefile target that removes all generated files, such as intermediate object files.

+11
source share

configure checks to see if you have all the prerequisites / dependencies for creating the software.

make does the actual compilation.

make install installs the software in the right place.

+5
source share

It is basically a build system.

./configure checks for all the necessary dependencies and creates a Makefile.
make compiles software using Makefile rules.
make install moves the software to the right place in the file system.

+4
source share

Make takes care of running a (sometimes very complex) set of instructions and commands needed to create a control source in a compiled executable or library.

make (software)

make is a utility that automatically creates executable programs and libraries from source

+3
source share

'./configure' is a script wrapper portable across several Unix systems (Linux, Solaris, etc.). "./configure" does a few things: test the build environment, fix portability issues, check other optional software, check where you want to install the software package, etc. You can find out what options you can configure by. / configure --help. By simply calling "./configure", you simply configure the package with what it considers to be the default. The main output file from "./configure" is usually the "Makefile" file, which is a combination of instructions for building / installing / uninstalling a software package.

make uses the Makefile to create a default target, which is usually a collection of things to build.

make install uses the makefile to build the install target, which installs the software.

+1
source share

I found this awesome article (“Get to know the software installation, do it, do the installation”) that details how to set up, do it, and do the installation. Not too shallow and not too deep, enough to make it convenient for Linux. http://www.codecoffee.com/tipsforlinux/articles/27.html

+1
source share

There is also make clean

Here is a good link: http://makepp.sourceforge.net/1.19/makepp_tutorial.html

0
source share

All Articles