Install Make
In this article, we have explained how to build and install GNU Make tool using apt-get or by building from source code.
Table of contents:
- Introduction to Make
- Build and Install Make
- Check make installation
Introduction to Make
Make is an open-source tool by GNU which is used to build executables and non-source code files of projects. It is used in building several production softwares like Clang and TensorFlow.
It is also referred to as GNU Make tool. Projects using make tool come with a "Makefile" which hold instructions for the Make tool to build the project.
Build and Install Make
We have explained how to build and install Make tool using different ways:
- Using apt-get
- Using build-essential package
- From source code of Make
Using apt-get
To install Cmake using apt-get, use the following commands:
sudo apt-get update
sudo apt-get -y install make
Using build-essential package
Alternatively, we can install build-essential package which include several tools like make tool:
sudo apt-get install build-essential
From source code of Make
To build Make tool from source code, use the following commands:
wget http://ftp.gnu.org/gnu/make/make-4.3.tar.gz
sudo tar -zxvf make-4.3.tar.gz
cd make-4.3
./configure --prefix=/usr/local
make -j 16
sudo make install
Note: The use of make command to build and install Make tool is fine as we are running the configure command before it. The chicken and egg situation does not arise here.
With this, Make tool will be installed in your system.
Check make installation
To check if make has been installed correctly, we can use the following command to check the version of make tool:
make -v
With this article at OpenGenus, you must have the complete idea of how to build and install Make tool. Enjoy.