Makefile: use -MMD to generate deps instead of using separate steps
This commit is contained in:
parent
46b8964bbb
commit
939dc0fa8e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user