def find_EXECUTABLES(Makefile, flags):
'''
See the doc-string for find_prefix as well.
Set Makefile['EXECUTABLES'] if needed to.
Depends (directly) on $(gamesdir) and $(bindir).
Depends (indirectly) on $(prefix).
'''
if 'EXECUTABLES' not in Makefile:
acceptable = os.getenv('PATH').split(':')
for exec_dir in ('gamesdir', 'bindir'):
if expand(exec_dir, Makefile) in acceptable:
Makefile['EXECUTABLES'] = '$('+exec_dir+')'
return False
else:
return True
else:
return False
评论列表
文章目录