Try -M flag (rather than -MM) for dependency generation.