author | Lars Hjemli <hjemli@gmail.com> | 2010-11-07 15:13:49 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-11-07 15:13:49 (UTC) |
commit | 5807fb79faa49e9a8f2da616e9cc821e0198fcb7 (patch) (unidiff) | |
tree | ab36f62bc5fea3856603f6653f5c8da31233abea /Makefile | |
parent | d41b2ddcb331caa74c1a90a0253f234142848552 (diff) | |
download | cgit-5807fb79faa49e9a8f2da616e9cc821e0198fcb7.zip cgit-5807fb79faa49e9a8f2da616e9cc821e0198fcb7.tar.gz cgit-5807fb79faa49e9a8f2da616e9cc821e0198fcb7.tar.bz2 |
Makefile: add -MP option
Work around errors `make` gives when header files are removed without
the Makefile being updated.
Signed-off-by: Lynn Lin <Lynn.Lin@emc.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ endif | |||
67 | # Define a pattern rule for automatic dependency building | 67 | # Define a pattern rule for automatic dependency building |
68 | # | 68 | # |
69 | %.d: %.c | 69 | %.d: %.c |
70 | $(QUIET_MM)$(CC) $(CFLAGS) -MM $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@ | 70 | $(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@ |
71 | 71 | ||
72 | # | 72 | # |
73 | # Define a pattern rule for silent object building | 73 | # Define a pattern rule for silent object building |