Casiano Rodriguez Leon wrote:
> Dear MakeMakers,
> 
> Apologies if it is a moronic question.
> My problem involves the yapp syntax generator and ExtUtils::MakeMaker.
> 
> The module Parse::Yapp provides a yacc-like LALR parser.
> The input is a grammar: Grammar.yp and the output is
> an object oriented module: Grammar.pm.
> 
> How can I say in my Makefile.PL that to build the module
> it has to run yapp first? Assume Grammar.pm is the module
> I need to deliver.

Sorry for the very, very, very, very late response.  Hopefully this is still 
useful information.

You'd use the PL_FILES argument to WriteMakefile() tell MakeMaker to run a 
program in order to generate Grammar.pm.

    PL_FILES => { 'yp_to_pm.PL' => 'lib/Grammar.pm' }

The PL_FILES docs in ExtUtils::MakeMaker should explain the details of writing 
yp_to_pm.PL.  Feel free to ask if anything is not clear.

Reply via email to