mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-20 18:11:36 +03:00
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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user