mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
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>
This commit is contained in:
parent
d41b2ddcb3
commit
5807fb79fa
2
Makefile
2
Makefile
@ -67,7 +67,7 @@ endif
|
|||||||
# Define a pattern rule for automatic dependency building
|
# Define a pattern rule for automatic dependency building
|
||||||
#
|
#
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
$(QUIET_MM)$(CC) $(CFLAGS) -MM $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
|
$(QUIET_MM)$(CC) $(CFLAGS) -MM -MP $< | sed -e 's/\($*\)\.o:/\1.o $@:/g' >$@
|
||||||
|
|
||||||
#
|
#
|
||||||
# Define a pattern rule for silent object building
|
# Define a pattern rule for silent object building
|
||||||
|
Loading…
Reference in New Issue
Block a user