parameters: (params, root_makefile, makefile_name,
                                build_files)
docstring: Write the target to regenerate the Makefile.
docstring_summary: Write the target to regenerate the Makefile.
docstring_tokens: Write the target to regenerate the Makefile .
function: def WriteAutoRegenerationRule(params, root_makefile, makefile_name,
                                build_files):
    """Write the target to regenerate the Makefile."""
    options = params['options']
    build_files_args = [gyp.common.RelativePath(filename, options.toplevel_dir)
                        for filename in params['build_files_arg']]
  
    gyp_binary = gyp.common.FixIfRelativePath(params['gyp_binary'],
                                              options.toplevel_dir)
    if not gyp_binary.startswith(os.sep):
      gyp_binary = os.path.join('.', gyp_binary)
  
    root_makefile.write(
        "quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
        "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
        "%(makefile_name)s: %(deps)s\n"
        "\t$(call do_cmd,regen_makefile)\n\n" % {
            'makefile_name': makefile_name,
            'deps': ' '.join(map(Sourceify, build_files)),
            'cmd': gyp.common.EncodePOSIXShellList(
                       [gyp_binary, '-fmake'] +
                       gyp.RegenerateFlags(options) +
                       build_files_args)})
function_tokens: def WriteAutoRegenerationRule ( params , root_makefile , makefile_name , build_files ) : options = params [ 'options' ] build_files_args = [ gyp . common . RelativePath ( filename , options . toplevel_dir ) for filename in params [ 'build_files_arg' ] ] gyp_binary = gyp . common . FixIfRelativePath ( params [ 'gyp_binary' ] , options . toplevel_dir ) if not gyp_binary . startswith ( os . sep ) : gyp_binary = os . path . join ( '.' , gyp_binary ) root_makefile . write ( "quiet_cmd_regen_makefile = ACTION Regenerating $@\n" "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n" "%(makefile_name)s: %(deps)s\n" "\t$(call do_cmd,regen_makefile)\n\n" % { 'makefile_name' : makefile_name , 'deps' : ' ' . join ( map ( Sourceify , build_files ) ) , 'cmd' : gyp . common . EncodePOSIXShellList ( [ gyp_binary , '-fmake' ] + gyp . RegenerateFlags ( options ) + build_files_args ) } )