2005-02-04 03:05:55 -05:00
|
|
|
MAKEFILE:
|
|
|
|
=========
|
|
|
|
|
|
|
|
<makefile> ::= '(' + "makefile" + <makerule-clause>* + ')'
|
|
|
|
|
|
|
|
<makerule-clause> ::= <rule-clause>
|
|
|
|
| <md5-clause>
|
|
|
|
| <always-clause>
|
|
|
|
| <once-clause>
|
|
|
|
|
|
|
|
<rule-clause> ::= '(' + <rule-clause-identifier>
|
|
|
|
+ <target-spec>
|
|
|
|
+ <prereq-spec>
|
2005-02-15 06:37:40 -05:00
|
|
|
+ <action>+ + ')'
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
<md5-clause> ::= '(' + <md5-clause-identifier>
|
|
|
|
+ <target-spec>
|
|
|
|
+ <prereq-spec>
|
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<always-clause> ::= '(' + <always-clause-identifier>
|
|
|
|
+ <target-spec>
|
|
|
|
+ <prereq-spec>
|
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<once-clause> ::= '(' + <once-clause-identifier>
|
|
|
|
+ <target-spec>
|
|
|
|
+ <prereq-spec>
|
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<rule-clause-identifier> ::= "rule"
|
|
|
|
| "makefile-rule"
|
|
|
|
| "is-out-of-date?"
|
|
|
|
|
|
|
|
<md5-clause-identifier> ::= "md5"
|
|
|
|
| "rule-md5"
|
|
|
|
| "fp-changed?"
|
|
|
|
|
|
|
|
<always-clause-identifier> ::= "always"
|
|
|
|
| "rule-always"
|
|
|
|
| "phony"
|
|
|
|
| "is-out-of-date!"
|
|
|
|
|
|
|
|
<once-clause-identifier> ::= "once"
|
|
|
|
| "rule-once"
|
|
|
|
|
|
|
|
<target-spec> ::= <target> | <target-list>
|
|
|
|
<target> ::= <filename>
|
|
|
|
<target-list> ::= '(' + <filename>+ + ')'
|
|
|
|
|
|
|
|
<prereq-spec> ::= <prereq> | <prereq-list>
|
|
|
|
<prereq> ::= <filename>
|
|
|
|
<prereq-list> ::= '(' + <filename>* + ')'
|
|
|
|
|
2005-02-15 06:37:40 -05:00
|
|
|
<action> ::= <function-call> | <value>
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
<filename> ::= '"' + {<dir-separator> + { 'a'-'z''A'-'Z''0'-'9' ... }+ }+ + '"'
|