On 27.04.2011 18:09, Ajay Jain wrote:
Hi,
I expect that if the Makefile is newer than the targets, all the
targets (&dependencies) should just rebuild.
i.e. if I do a touch Makefile& then a make, I should see EVERYTHING
getting rebuilt. This does not happen. Is there a way to enforce it?
I usually use such pattern:
%.o: %.c $(MAKEFILE_LIST)
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
Read about MAKEFILE_LIST variable in manual ('info make').
--
С уважением, Александр Гавенко.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make