Package conary :: Package build :: Module build :: Class MakeParallelSubdir
[hide private]
[frames] | no frames]

Class MakeParallelSubdir

source code

  action.Action --+                
                  |                
action.RecipeAction --+            
                      |            
            BuildAction --+        
                          |        
  action.Action --+       |        
                  |       |        
action.RecipeAction --+   |        
                      |   |        
    action.ShellCommand --+        
                          |        
               BuildCommand --+    
                              |    
                           Make --+
                                  |
                                 MakeParallelSubdir

NAME

r.MakeParallelSubdir() - Runs make with parallelmflags applied only to sub-make processes

SYNOPSIS

r.MakeParallelSubdir(makeargs)

DESCRIPTION

The r.MakeParallelSubdir() class is called from within a Conary recipe to execute the make utility with system defaults for parallelmflags only applied to sub-make processes.

r.MakeParallelSubdir() is used exactly like r.Make in cases where the top-level Makefile does not work correctly with parallel make, but the lower-level Makefiles do work correctly with parallel make.

Instance Methods [hide private]
 
_addMakeToBuildRequires(self) source code

Inherited from Make: __init__, do

Inherited from BuildAction: doAction, initManifest, missingFiles

Inherited from action.RecipeAction: doPrep, doSuggestAutoBuildReqs, init_error

Inherited from action.Action: addArgs

Inherited from action.Action (private): _applyDefaults

Class Variables [hide private]
  _actionPathBuildRequires = set(['make', 'sh'])
  template = 'cd \'%%(actionDir)s\'; CFLAGS="%%(cflags)s" CXXFLA...
The string template used to build the shell command.

Inherited from Make: keywords

Inherited from BuildAction: useExplicitManifest

Instance Variables [hide private]

Inherited from action.ShellCommand: self.command

Method Details [hide private]

_addMakeToBuildRequires(self)

source code 
Overrides: Make._addMakeToBuildRequires

Class Variable Details [hide private]

template

The string template used to build the shell command.
Value:
'cd \'%%(actionDir)s\'; CFLAGS="%%(cflags)s" CXXFLAGS="%%(cflags)s %%(\
cxxflags)s" CPPFLAGS="%%(cppflags)s" CLASSPATH="%%(classpath)s"  LDFLA\
GS="%%(ldflags)s" CC=%%(cc)s CXX=%%(cxx)s %(preMake)s make %%(override\
s)s %%(mflags)s  MAKE="make %%(mflags)s %%(parallelmflags)s" %(args)s'