Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
pymake.data.Rule Class Reference

List of all members.

Public Member Functions

def __init__
def addcommand
def getcommands

Public Attributes

 prerequisites
 doublecolon
 commands
 loc
 weakdeps

Detailed Description

A rule contains a list of prerequisites and a list of commands. It may also
contain rule-specific variables. This rule may be associated with multiple targets.

Definition at line 1233 of file data.py.


Constructor & Destructor Documentation

def pymake.data.Rule.__init__ (   self,
  prereqs,
  doublecolon,
  loc,
  weakdeps 
)

Definition at line 1239 of file data.py.

01239 
01240     def __init__(self, prereqs, doublecolon, loc, weakdeps):
01241         self.prerequisites = prereqs
01242         self.doublecolon = doublecolon
01243         self.commands = []
01244         self.loc = loc
01245         self.weakdeps = weakdeps


Member Function Documentation

def pymake.data.Rule.addcommand (   self,
  c 
)

Definition at line 1246 of file data.py.

01246 
01247     def addcommand(self, c):
01248         assert isinstance(c, (Expansion, StringExpansion))
01249         self.commands.append(c)

def pymake.data.Rule.getcommands (   self,
  target,
  makefile 
)

Definition at line 1250 of file data.py.

01250 
01251     def getcommands(self, target, makefile):
01252         assert isinstance(target, Target)
01253 
01254         return getcommandsforrule(self, target, makefile, self.prerequisites, stem=None)
01255         # TODO: $* in non-pattern rules?

Here is the call graph for this function:


Member Data Documentation

Definition at line 1242 of file data.py.

Definition at line 1241 of file data.py.

Definition at line 1243 of file data.py.

Definition at line 1240 of file data.py.

Definition at line 1244 of file data.py.


The documentation for this class was generated from the following file: