Makefile: use -MMD to generate deps instead of using separate steps

This commit is contained in:
Maxime Coste 2012-08-08 13:39:31 +02:00
parent 46b8964bbb
commit 939dc0fa8e

View File

@ -8,10 +8,10 @@ LDFLAGS += -lncurses -lboost_regex
kak : $(objects) kak : $(objects)
$(CXX) $(LDFLAGS) $(CXXFLAGS) $(objects) -o $@ $(CXX) $(LDFLAGS) $(CXXFLAGS) $(objects) -o $@
include $(deps) -include $(deps)
.%.d: %.cc %.o: %.cc
$(CXX) $(CXXFLAGS) -MM $< -o $@ $(CXX) $(CXXFLAGS) -MMD -MP -MF $(addprefix ., $(<:.cc=.d)) -c -o $@ $<
tags: tags:
ctags -R ctags -R