2005-02-04 03:05:55 -05:00
|
|
|
MAKEFILE:
|
|
|
|
=========
|
|
|
|
|
|
|
|
<makefile> ::= '(' + "makefile" + <makerule-clause>* + ')'
|
|
|
|
|
2005-02-21 03:57:48 -05:00
|
|
|
<makerule-clause> ::= <file-clause>
|
|
|
|
| <all-clause>
|
2005-02-04 03:05:55 -05:00
|
|
|
| <md5-clause>
|
|
|
|
| <always-clause>
|
|
|
|
| <once-clause>
|
|
|
|
|
2005-02-21 03:57:48 -05:00
|
|
|
<file-clause> ::= '(' + <fille-clause-identifier>
|
|
|
|
+ <target-spec>
|
|
|
|
+ <prereq-spec>
|
|
|
|
+ <action>+ + ')'
|
|
|
|
|
|
|
|
<all-clause> ::= '(' + <all-clause-identifier>
|
2005-02-04 03:05:55 -05:00
|
|
|
+ <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> + ')'
|
|
|
|
|
2005-02-21 03:57:48 -05:00
|
|
|
<file-clause-identifier> ::= "file"
|
2005-02-04 03:05:55 -05:00
|
|
|
| "makefile-rule"
|
|
|
|
| "is-out-of-date?"
|
|
|
|
|
2005-02-21 03:57:48 -05:00
|
|
|
<all-clause-identifier> ::= "all"
|
|
|
|
| "file-all"
|
|
|
|
| "all-out-of-date?"
|
|
|
|
|
2005-02-04 03:05:55 -05:00
|
|
|
<md5-clause-identifier> ::= "md5"
|
2005-02-21 03:57:48 -05:00
|
|
|
| "file-md5"
|
2005-02-04 03:05:55 -05:00
|
|
|
| "fp-changed?"
|
|
|
|
|
|
|
|
<always-clause-identifier> ::= "always"
|
2005-02-21 03:57:48 -05:00
|
|
|
| "file-always"
|
2005-02-04 03:05:55 -05:00
|
|
|
| "phony"
|
|
|
|
| "is-out-of-date!"
|
|
|
|
|
|
|
|
<once-clause-identifier> ::= "once"
|
2005-02-21 03:57:48 -05:00
|
|
|
| "file-once"
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
<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' ... }+ }+ + '"'
|