code_junkie

Dependency checking - how to clean up a project with bad makefiles

Nov 11th, 2011
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. SOURCES=foo.c bar.c
  2.  
  3. %.d: %.c
  4. $(CC) $(CFLAGS) -MM $< >$@
  5.  
  6. include $(SOURCES:.c=.d)
Add Comment
Please, Sign In to add comment