From 27ad54bc7b0cae52a419de41c77a9f7151da2519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Eraslan?= Date: Mon, 16 Aug 2010 07:04:54 +0000 Subject: [PATCH] actionsapi/cmaketools: Remove Makefile check from cmaketools.install Developer may add '-C dir' parameter, so we should take this into account. --- pisi/actionsapi/cmaketools.py | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/pisi/actionsapi/cmaketools.py b/pisi/actionsapi/cmaketools.py index 2346231b..94560c28 100644 --- a/pisi/actionsapi/cmaketools.py +++ b/pisi/actionsapi/cmaketools.py @@ -84,23 +84,20 @@ def fixInfoDir(): def install(parameters = '', argument = 'install'): '''install source into install directory with given parameters''' - if can_access_file('makefile') or can_access_file('Makefile') or can_access_file('GNUmakefile'): - # You can't squeeze unix paths with things like 'bindir', 'datadir', etc with CMake - # http://public.kitware.com/pipermail/cmake/2006-August/010748.html - args = 'make DESTDIR="%(destdir)s" \ - %(parameters)s \ - %(argument)s' % { - 'destdir' : get.installDIR(), - 'parameters' : parameters, - 'argument' : argument, - } + # You can't squeeze unix paths with things like 'bindir', 'datadir', etc with CMake + # http://public.kitware.com/pipermail/cmake/2006-August/010748.html + args = 'make DESTDIR="%(destdir)s" \ + %(parameters)s \ + %(argument)s' % { + 'destdir' : get.installDIR(), + 'parameters' : parameters, + 'argument' : argument, + } - if system(args): - raise InstallError(_('Install failed.')) - else: - fixInfoDir() + if system(args): + raise InstallError(_('Install failed.')) else: - raise InstallError(_('No Makefile found.')) + fixInfoDir() def rawInstall(parameters = '', argument = 'install'): '''install source into install directory with given parameters = PREFIX=%s % get.installDIR()'''