actionsapi/cmaketools: Remove Makefile check

Developer may add '-C dir' parameter, so we should take this into account.
This commit is contained in:
Gökçen Eraslan
2010-08-16 07:00:57 +00:00
parent 9f4c66afa2
commit 057ea2934a
+6 -9
View File
@@ -69,16 +69,13 @@ def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), s
def make(parameters = ''):
'''build source with given parameters'''
if can_access_file('Makefile'):
if ctx.config.get_option("verbose") and ctx.config.get_option("debug"):
command = 'make VERBOSE=1 %s %s' % (get.makeJOBS(), parameters)
else:
command = 'make %s %s' % (get.makeJOBS(), parameters)
if system(command):
raise MakeError(_('Make failed.'))
if ctx.config.get_option("verbose") and ctx.config.get_option("debug"):
command = 'make VERBOSE=1 %s %s' % (get.makeJOBS(), parameters)
else:
raise InstallError(_('No Makefile found.'))
command = 'make %s %s' % (get.makeJOBS(), parameters)
if system(command):
raise MakeError(_('Make failed.'))
def fixInfoDir():
infoDir = '%s/usr/share/info/dir' % get.installDIR()