(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.
Write a Makefile rule that uses do_cmd.
Write a Makefile rule that uses do_cmd .
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,
                       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))
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 , 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 ) )