use utf8;
use strict;
use warnings;
use ExtUtils::MakeMaker;

my $YAPP_COMMAND1 = "(cd bin; make )";
`$YAPP_COMMAND1`;

WriteMakefile(
    NAME              => 'Lingua::DicParser',
    VERSION_FROM      => 'lib/Lingua/DicParser.pm', # finds $VERSION
    EXE_FILES   => [qw{
           bin/dici 
           bin/csv-expand
           bin/tbx2dici } ],
    PREREQ_PM         => {
        'Parse::Yapp' => 0,
        'Test::More' => 0,
        'Image::Size' => 0,
        'Parse::DSLUtils' => 0,
        'Lingua::StarDict::Gen' => 0,
        'utf8::all' => 0,

     }, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/Lingua/DicParser.pm', # retrieve abstract from module
       AUTHOR         => 'jjoao Dias de ALmeida <jj@di.uminho.pt>') : ()),
);

sub MY::postamble {
  return <<"MAKE_FRAG";
bin/dici: bin/dici.yp
	echo "yapp dici"
	$YAPP_COMMAND1
	echo "     Gen dici OK"
MAKE_FRAG
}

