Use the -MP switch (make phony) for better dependency generation when files are removed.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 26 Nov 2012 23:45:21 +0000 (00:45 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 26 Nov 2012 23:45:21 +0000 (00:45 +0100)
Makefile

index 8ad8c2d..cd1a4b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,7 @@ libmovit.a: $(LIB_OBJS)
        $(RANLIB) $@
 
 %.o: %.cpp
-       $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
+       $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
 
 DEPS=$(OBJS:.o=.d)
 -include $(DEPS)