From 939dc0fa8e5919581602873bb7982384c79ad892 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 8 Aug 2012 13:39:31 +0200 Subject: [PATCH] Makefile: use -MMD to generate deps instead of using separate steps --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 05ce4f72..49f09481 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,10 +8,10 @@ LDFLAGS += -lncurses -lboost_regex kak : $(objects) $(CXX) $(LDFLAGS) $(CXXFLAGS) $(objects) -o $@ -include $(deps) +-include $(deps) -.%.d: %.cc - $(CXX) $(CXXFLAGS) -MM $< -o $@ +%.o: %.cc + $(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $< tags: ctags -R