]> git.sesse.net Git - movit/commitdiff
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 8ad8c2d2df1c4efb7d59622c8178fa72642b4ee4..cd1a4b859639a119d79e6d9d768a215faabd5630 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)