make rule to compile yecc grammars?

Vladimir Sekissov <>
Tue Jan 29 16:03:23 CET 2002


Good day,

garry> > 
garry> > 1) Put "my_parser.beam" in your target list some way or other.
garry> >    (I assume you have a rule ".erl.beam:" somewhere.)
garry> > 
garry> > 2) Add ".yrl" to the .SUFFIXES pseudo-rule.
garry> > 
garry> > 3) Include the following rule:
garry> > 
garry> > .yrl.erl:
garry> >         echo "yecc:yecc($*,$*), halt()." | erl
garry> > 
garry> >         /Richard

.yrl.erl:
        erlc $<

Also work well for me.

Best Regards,

Vladimir Sekissov



More information about the erlang-questions mailing list