Definition
In Bash, Makefile can be defined as a tool that allow us to keep track
of the commands that we can use to run and compile our code
How to Use?
- Download the latest version of the package using: sudo apt update
- Install the Make tool using: sudo apt install make
- Navigate to your project folder
- Create a file called using: nano Makefile
- To create a target to Run or compile, type the name of the target,
followed by a colon ':'. Then, click enter and tab to type the action
we want. We can keep adding actions by pressing enter button, tab button,
and type our target
- To create dependencies, press the space button in front of the colon.
Then, type in the other target we want to do before this target running.
We can keep adding dependencies by pressing the space button before adding
other dependencies
Make Tutorial
Extra Example of using Makefile