org.eclipse.cdt.make.internal.core.makefile.posix
Class PosixMakefile
java.lang.Object
org.eclipse.cdt.make.internal.core.makefile.Directive
org.eclipse.cdt.make.internal.core.makefile.Parent
org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
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 : "$<" | "$*" | "$@" | "$?" | "$%"
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PosixMakefile
public PosixMakefile()
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)