org.eclipse.cdt.make.internal.core.makefile.posix
Class PosixMakefile

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.makefile.Directive
      extended by org.eclipse.cdt.make.internal.core.makefile.Parent
          extended by org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
              extended by org.eclipse.cdt.make.internal.core.makefile.posix.PosixMakefile
All Implemented Interfaces:
IDirective, IMakefile, IParent

public class PosixMakefile
extends AbstractMakefile

Makefile : ( statement ) * statement : rule | macro_definition | comments | empty rule : inference_rule | target_rule | special_rule inference_rule : target ':' [ ';' command ] [ ( command ) * ] target_rule : [ ( target ) + ] ':' [ ( prerequisite ) * ] [ ';' command ] [ ( command ) * ] macro_definition : string '=' ( string )* comments : ('#' ( string ) ) * empty : command : prefix_command string target : string prefix_command : '-' | '@' | '+' internal_macro : "$<" | "$*" | "$@" | "$?" | "$%"


Constructor Summary
PosixMakefile()
           
 
Method Summary
 IDirective[] getBuiltins()
          Return all the builtin directives.
static void main(java.lang.String[] args)
           
 void parse(java.lang.String name)
           
 void parse(java.lang.String name, java.io.Reader reader)
          Clear the all statements and (re)parse the Makefile
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
expandString, expandString, getBuiltinInferenceRules, getBuiltinInferenceRules, getBuiltinMacroDefinitions, getBuiltinMacroDefinitions, getInferenceRules, getInferenceRules, getMacroDefinitions, getMacroDefinitions, getRules, getRules, getTargetRules, getTargetRules
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Parent
addDirective, addDirectives, clearDirectives, getDirectives, getDirectives, getStatements, toString
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Directive
getEndLine, getFileName, getParent, getStartLine, setEndLine, setFilename, setLines, setParent, setStartLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IParent
getDirectives
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IDirective
getEndLine, getFileName, getParent, getStartLine, toString
 

Constructor Detail

PosixMakefile

public PosixMakefile()
Method Detail

parse

public void parse(java.lang.String name)
           throws java.io.IOException
Throws:
java.io.IOException

parse

public void parse(java.lang.String name,
                  java.io.Reader reader)
           throws java.io.IOException
Description copied from interface: IMakefile
Clear the all statements and (re)parse the Makefile

Throws:
java.io.IOException

getBuiltins

public IDirective[] getBuiltins()
Description copied from interface: IMakefile
Return all the builtin directives.

Specified by:
getBuiltins in interface IMakefile
Specified by:
getBuiltins in class AbstractMakefile
Returns:

main

public static void main(java.lang.String[] args)