One of the well known problems with make is that it’s a real nuisance to completely specify all the dependencies in your project. For example, if you have a file main.c in your project, you probably already have a dependency like this in your makefile:
main.o: main.c
However, if main.c includes logging.h, you technically need to have a dependency like the following too — but you probably don’t have it:
main.o: logging.h
The kicker is that without this additional dependency, make will fail to realize that it needs to rebuild main.o if there is a change in logging.h. Of course, this wreaks havoc on your ability to do reliable incremental builds.
Blog Feed