parameters: (self, outputs, inputs, command, part_of_all, comment=None,
                   postbuilds=False)
docstring: 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.
docstring_summary: Write a Makefile rule that uses do_cmd.
docstring_tokens: Write a Makefile rule that uses do_cmd .
function: def WriteDoCmd(self, outputs, inputs, command, part_of_all, comment=None,
                   postbuilds=False):
      """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.
      """
      suffix = ''
      if postbuilds:
        assert ',' not in command
        suffix = ',,1'  # Tell do_cmd to honor $POSTBUILDS
      self.WriteMakeRule(outputs, inputs,
                         actions = ['$(call do_cmd,%s%s)' % (command, suffix)],
                         comment = comment,
                         command = command,
                         force = True)
      # Add our outputs to the list of targets we read depfiles from.
      # all_deps is only used for deps file reading, and for deps files we replace
      # spaces with ? because escaping doesn't work with make's $(sort) and
      # other functions.
      outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
      self.WriteLn('all_deps += %s' % ' '.join(outputs))
function_tokens: def WriteDoCmd ( self , outputs , inputs , command , part_of_all , comment = None , postbuilds = False ) : suffix = '' if postbuilds : assert ',' not in command suffix = ',,1' # Tell do_cmd to honor $POSTBUILDS self . WriteMakeRule ( outputs , inputs , actions = [ '$(call do_cmd,%s%s)' % ( command , suffix ) ] , comment = comment , command = command , force = True ) # Add our outputs to the list of targets we read depfiles from. # all_deps is only used for deps file reading, and for deps files we replace # spaces with ? because escaping doesn't work with make's $(sort) and # other functions. outputs = [ QuoteSpaces ( o , SPACE_REPLACEMENT ) for o in outputs ] self . WriteLn ( 'all_deps += %s' % ' ' . join ( outputs ) )