make rule to compile yecc grammars?

Garry Hodgson <>
Tue Jan 29 15:36:04 CET 2002


Richard Carlsson wrote:
> 
> 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:
> 
> .yrl.erl:
>         echo "yecc:yecc($*,$*), halt()." | erl
> 
>         /Richard

works just fine.  thank you.

-- 
Garry Hodgson                   Let my inspiration flow
Senior Hacker                      in token rhyme suggesting rhythm
Software Innovation Services    that will not forsake me
AT&T Labs                          'til my tale is told and done.




More information about the erlang-questions mailing list