Makefile breaks when a header file is removed
redblobgames opened this issue · comments
To reproduce:
touch dummy.h
- Add to
font.h
:#include "dummy.h"
- Run
make
. This should work fine. rm touch.h
- Remove the
#include
fromfont.h
- Run
make
.
Expected behavior: make runs, and updates the build/*.d files to no longer reference dummy.h.
Actual behavior: make fails with an error message, and doesn't update build/*.d. The only way out of this situation is to run make clean
and start again.
*** No rule to make target `dummy.h', needed by `build/main.o'. Stop.