File: Makefile.PL

package info (click to toggle)
libparse-yapp-perl 1.05-11
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 260 kB
  • ctags: 79
  • sloc: perl: 2,385; makefile: 35
file content (17 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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',
	      'VERSION_FROM' => 'lib/Parse/Yapp/Driver.pm', # finds $VERSION
	      '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
}