Hacker News new | ask | show | jobs
by ataylor284_ 902 days ago
You could do something like this to get dependencies almost for free:

    .depends: $(SRCS)
        $(CC) $(CFLAGS) -MM $(SRCS) -o .depends

    -include .depends