I have a problem with make, sometimes it remakes targets even when nothing has changed.
This is the simplest makefile that the problem happens on:
For some reason it keeps relinking the program ever time I run make, even though nothing has changed.Code:all: birthdays.o gcc birthdays.o -obirthdays birthdays.o: birthdays.c birthdays.h gcc -c birthdays.c
Sometimes it works and says nothing to be done, but most of the time it keeps remaking it.
Does anyone know what I am doing wrong?