def get_var(var):
 makeconf = _get_makeconf()
 with salt.utils.fopen(makeconf) as fn_:
  conf_file = fn_.readlines()
 for line in conf_file:
  if line.startswith(var):
   ret = line.split('=', 1)[1]
   if ('"' in ret):
    ret = ret.split('"')[1]
   elif ('#' in ret):
    ret = ret.split('#')[0]
   ret = ret.strip()
   return ret
 return None

def get_var ( var ) : makeconf = _get_makeconf ( ) with salt . utils . fopen ( makeconf ) as fn_ : conf_file = fn_ . readlines ( ) for line in conf_file : if line . startswith ( var ) : ret = line . split ( '=' , 1 ) [ 1 ] if ( '"' in ret ) : ret = ret . split ( '"' ) [ 1 ] elif ( '#' in ret ) : ret = ret . split ( '#' ) [ 0 ] ret = ret . strip ( ) return ret return None
get the value of a variable in make .