From 21fa4dcb1340a7b25ca0bd4296738a77ccf7632f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 5 Mar 2019 20:56:44 +1100 Subject: [PATCH] Re-introduce -MP in the C++ compilation rule It turns out it is important to avoid having to clean when a header is deleted. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d1f3b6e4..0c4868e3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -98,7 +98,7 @@ kak$(suffix) : $(objects) .version.o -include $(deps) .%$(suffix).o: %.cc - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $< + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $< .version.o: .version.cc $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<