What is a Makefile?
A Makefile is a type of file that contains targets and rules that
allows the user to create libraries and classes through simple commands.
Follow this link to learn more.
Example of contents of a Makefile
Main.class: Main.java
javac Main.java
In this case, Main.class is the target, Main.java is the dependency, and javac Main.java is the rule.
Important tips
- When creating a Makefile, make sure the M is capital.
- Make sure the dependencies of a target exist before calling the target with the dependency
- Running only "make" will cause the first target in the file to be ran.
Here is the logo for Makefile