File: Makefile.PL

package info (click to toggle)
libparse-yapp-perl 1.21-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: perl: 2,751; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 1,174 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'	=> 'Parse::Yapp',
    # CORRELATION #py001: $VERSION must be changed in both Parse::Yapp & Parse::Yapp::Driver
    'VERSION_FROM' => 'lib/Parse/Yapp/Driver.pm',
    'MAN3PODS' => { 'lib/Parse/Yapp.pm' => '$(INST_MAN3DIR)/Parse::Yapp.3' },
    'PM' => {
              'lib/Parse/Yapp.pm' => '$(INST_LIBDIR)/Yapp.pm',
              'lib/Parse/Yapp/Options.pm' => '$(INST_LIBDIR)/Yapp/Options.pm',
              'lib/Parse/Yapp/Driver.pm' => '$(INST_LIBDIR)/Yapp/Driver.pm',
              'lib/Parse/Yapp/Grammar.pm' => '$(INST_LIBDIR)/Yapp/Grammar.pm',
              'lib/Parse/Yapp/Lalr.pm' => '$(INST_LIBDIR)/Yapp/Lalr.pm',
              'lib/Parse/Yapp/Output.pm' => '$(INST_LIBDIR)/Yapp/Output.pm',
              'lib/Parse/Yapp/Parse.pm' => '$(INST_LIBDIR)/Yapp/Parse.pm'
            },
	'EXE_FILES' => [ 'yapp' ],
);

sub MY::postamble {
<<'EOT';
YAPPPARSE = lib/Parse/Yapp/Parse.pm

$(YAPPPARSE) :: YappParse.yp
	$(PERL) -I./lib yapp -m 'Parse::Yapp::Parse' -o 'lib/Parse/Yapp/Parse.pm' YappParse.yp
EOT
}