make rule to compile yecc grammars?
Tue Jan 29 11:23:00 CET 2002
1) Put "my_parser.beam" in your target list some way or other.
(I assume you have a rule ".erl.beam:" somewhere.)
2) Add ".yrl" to the .SUFFIXES pseudo-rule.
3) Include the following rule:
echo "yecc:yecc($*,$*), halt()." | erl
On Mon, 28 Jan 2002, Garry Hodgson wrote:
> i'm using yecc to construct a parser, and would like to integrate
> it into the general build structure of the (larger) project.
> it's easy to generate the parser (say, foo_yecc) from within erlang,
> but i need to be able to do this from a Makefile line, and get the
> dependencies to the correcspoinding foo.yrl correct. does anyone
> have a little example of this i could look at?
Richard Carlsson (richardc@REDACTED) (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED WWW: http://www.csd.uu.se/~richardc/
More information about the erlang-questions