1
1
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:
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)
$(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