What is a MakeFile?
- Helps organize terminal commands
- Makes testing and compiling easier
- Ensures all the team uses the same commands
make all
- Builds all targets marked as all
make clean
- Cleans up all files that were generated during compilation
make test
- Runs predefined tests for the application
- Use variables for compiler and compiler flags to make maintenance easier.
- Keep the Makefile logic simple and clear.
- Include comments to explain complex dependencies or rules.
For more information about Makefiles follow this link