'Write a Makefile rule that uses do_cmd.
This makes the outputs dependent on the command line that was run,
as well as support the V= make command line flag.'

def WriteDoCmd(self, outputs, inputs, command, part_of_all, comment=None, postbuilds=False):

    suffix = ''
    if postbuilds:
        assert (',' not in command)
        suffix = ',,1'
    self.WriteMakeRule(outputs, inputs, actions=[('$(call    do_cmd,%s%s)' % (command, suffix))], comment=comment, command=command, force=True)
    outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
    self.WriteLn(('all_deps    +=    %s' % '    '.join(outputs)))
