It should be noted that if the build system is configured in a modular way, one practice is not to create one huge makefile for everything, but makefiles for bits that can be called from the main makefile file recursively. This is a great feature, as it means that different products (libraries?) Can be built as separate blocks, often in parallel.
Makefiles are designed to automate the build process. Therefore, they are certainly not a choir; they save you spelling gcc -c *.c etc. all time. Not only this, but also a correctly written make file has backgrounds for cleaning, rebuilding, etc. In most of my projects, make rebuild does just that - cleans everything up and starts again.
Make files are really useful. I can’t say that enough.
user257111
source share