Logo Search packages:      
Sourcecode: jmk version File versions  Download package

boolean edu::neu::ccs::jmk::Rule::tryPattern ( String  match,
String[]  dependencies,
Command[]  commands,
int  lineNumber 
) [inline, package]

Called by make.tryPatterns when a matching pattern is found.

Definition at line 145 of file Rule.java.

References edu::neu::ccs::jmk::Make::get(), merge(), and setMatch().

Referenced by edu::neu::ccs::jmk::Pattern::merge().

    // Add new prerequisites to the FRONT of the list.
    Rule[] addedPrerequisites = prerequisites;
    prerequisites = new Rule[dependencies.length];
    for (int i = 0; i < dependencies.length; i++) // Replace names
      prerequisites[i] = make.get(dependencies[i]); // by rules
    merge(addedPrerequisites, commands, lineNumber);
    return true;

Generated by  Doxygen 1.6.0   Back to index