Linux Makefile - When to use a makefile
Coding your own makefile
has the enormous, terribly powerful advantage of being able to centralize the commands you use on your project in a single place, whatever the nature of the project (php, javascript, nodeJs, markdown, etc.).
The presence of a file called makefile
sends a clear message to anyone who comes to work on the project: Hey, have a look here, you'll find all the commands you need. And it's really easy to list existing commands (see my article Linux Makefile - Adding a help screen).
So, you can define an up
command (you choose the name of the command) which will launch all the actions required to start the project; you could have down
for just the opposite, check
to check that the project is valid (e.g. launch static checks of the quality of your code), and so on.