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-24 09:43:43 -05:00
|
|
|
| <common-file-clause>
|
|
|
|
| <common-all-clause>
|
|
|
|
| <common-md5-clause>
|
|
|
|
| <common-always-clause>
|
|
|
|
| <common-once-clause>
|
2005-02-04 03:05:55 -05:00
|
|
|
|
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
|
|
|
|
2005-02-26 02:24:30 -05:00
|
|
|
<common-file-clause> ::= '(' + <common-file-clause-identifier>
|
|
|
|
+ <common-target-spec>
|
|
|
|
+ <common-prereq-spec>
|
2005-02-24 09:43:43 -05:00
|
|
|
+ <action>+ + ')'
|
|
|
|
|
|
|
|
<common-all-clause> ::= '(' + <common-all-clause-identifier>
|
2005-02-26 02:24:30 -05:00
|
|
|
+ <common-target-spec>
|
|
|
|
+ <common-prereq-spec>
|
2005-02-24 09:43:43 -05:00
|
|
|
+ <action>+ + ')'
|
|
|
|
|
|
|
|
<common-md5-clause> ::= '(' + <common-md5-clause-identifier>
|
2005-02-26 02:24:30 -05:00
|
|
|
+ <common-target-spec>
|
|
|
|
+ <common-prereq-spec>
|
2005-02-24 09:43:43 -05:00
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<common-always-clause> ::= '(' + <common-always-clause-identifier>
|
2005-02-26 02:24:30 -05:00
|
|
|
+ <common-target-spec>
|
|
|
|
+ <common-prereq-spec>
|
2005-02-24 09:43:43 -05:00
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<common-once-clause> ::= '(' + <common-once-clause-identifier>
|
2005-02-26 02:24:30 -05:00
|
|
|
+ <common-target-spec>
|
|
|
|
+ <common-prereq-spec>
|
2005-02-24 09:43:43 -05:00
|
|
|
+ <action-spec> + ')'
|
|
|
|
|
|
|
|
<common-file-clause-identifier> ::= "common-file"
|
|
|
|
| "common-makefile-rule"
|
|
|
|
| "common-is-out-of-date?"
|
|
|
|
|
|
|
|
<common-all-clause-identifier> ::= "common-all"
|
|
|
|
| "common-file-all"
|
|
|
|
| "common-all-out-of-date?"
|
|
|
|
|
|
|
|
<common-md5-clause-identifier> ::= "common-md5"
|
|
|
|
| "common-file-md5"
|
|
|
|
| "common-fp-changed?"
|
|
|
|
|
|
|
|
<common-always-clause-identifier> ::= "common-always"
|
|
|
|
| "common-file-always"
|
|
|
|
|
|
|
|
<common-once-clause-identifier> ::= "common-once"
|
|
|
|
| "common-file-once"
|
|
|
|
|
2005-02-26 02:24:30 -05:00
|
|
|
<common-target-spec> ::= <target-descr> | <target> | <target-list>
|
|
|
|
<target-descr> ::= <target-pattern> | <target-rx>
|
|
|
|
<target-pattern> ::= '"' + <prefix> + '%' + <suffix> + '"'
|
|
|
|
<prefix> ::= <letter-or-digit>*
|
|
|
|
<suffix> ::= <letter-or-digit>*
|
|
|
|
<target-rx> ::= '(' + "rx" + '(' + <submatch-connector>
|
|
|
|
+ <submatch-clause>{3} + ')' + ')'
|
|
|
|
|
|
|
|
<common-prereq-spec> ::= <prereq-descr>
|
|
|
|
<prereq-pattern> ::= '"' + <prefix> + '%' + <suffix> + '"'
|
|
|
|
<prereq-descr> ::= '(' + { <prereq-pattern> | <prereq> }* + ')'
|
|
|
|
|
2005-02-04 03:05:55 -05:00
|
|
|
<target-spec> ::= <target> | <target-list>
|
|
|
|
<target> ::= <filename>
|
|
|
|
<target-list> ::= '(' + <filename>+ + ')'
|
|
|
|
|
2005-02-26 02:24:30 -05:00
|
|
|
<prereq-spec> ::= <prereq-list>
|
2005-02-04 03:05:55 -05:00
|
|
|
<prereq> ::= <filename>
|
2005-02-26 02:24:30 -05:00
|
|
|
<prereq-list> ::= '(' + <prereq>* + ')'
|
2005-02-04 03:05:55 -05:00
|
|
|
|
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' ... }+ }+ + '"'
|