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