Library/Homebrew/extend/string.rb
def change_make_var!(flag, new_value)
    return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false)

    errors << "expected to change #{flag.inspect} to #{new_value.inspect}"
  end
# Looks for Makefile style variable definitions and replaces the
# value with "new_value", or removes the definition entirely.
Looks for Makefile style variable definitions and replaces the
value with "new_value", or removes the definition entirely.
Looks for Makefile style variable definitions and replaces the value with " new_value " or removes the definition entirely .
def change_make_var!(flag, new_value)
    return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false)
    errors << "expected to change #{flag.inspect} to #{new_value.inspect}"
  end
def change_make_var! ( flag , new_value ) return if gsub! ( / ^ #{ Regexp . escape ( flag ) } [  \t ]*=[  \t ]*(.*)$ / , "#{flag}=#{new_value}" , false ) errors << "expected to change #{flag.inspect} to #{new_value.inspect}" end
Looks for Makefile style variable definitions and replaces the
value with "new_value", or removes the definition entirely.
Looks for Makefile style variable definitions and replaces the value with " new_value " or removes the definition entirely .
flag
new_value