No need to build the dependency files as a separate step.
Also, make "make check" no longer build main objects.
$(CXX) -o shutdown shutdown.o $(EXTRA_LIBS)
$(objects): %.o: %.cc
- $(CXX) $(CXXOPTS) -Iincludes -Idasynq -c $< -o $@
+ $(CXX) $(CXXOPTS) -MMD -MP -Iincludes -Idasynq -c $< -o $@
-check: $(dinit_objects)
+check:
$(MAKE) -C tests check
install: all
rm -f dinit dinitctl shutdown
$(MAKE) -C tests clean
-$(objects:.o=.d): %.d: %.cc
- $(CXX) $(CXXOPTS) -Iincludes -Idasynq -MM -MG -MF $@ $<
-
-include $(objects:.o=.d)