-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.PL
40 lines (31 loc) · 1 KB
/
Makefile.PL
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
29
30
31
32
33
34
35
36
37
38
39
use strict;
use lib '.';
use inc::Module::Install;
name ('Cheater');
license ('BSD');
author ('Agent Zhang <[email protected]>');
perl_version ('5.010001');
all_from ('lib/Cheater.pm');
requires ('JSON::XS');
requires ('File::Slurp');
requires ('Date::Calc');
requires ('Data::Random' => '0.12');
requires ('Parse::RandGen::Regexp');
requires ('Moose');
requires ('Clone');
requires ('GD');
requires ('Parse::RecDescent');
#build_requires ('Test::Base' => '0.54');
use_test_base;
no_index( directory => qw< t inc doc share demo > );
install_script ('bin/cht-compile');
install_script ('bin/cht-rows2sql');
install_script ('bin/cht-schema2sql');
auto_install();
repository 'https://github.com/agentzh/cheater';
WriteAll();
if ($^O =~ /Win32/i) {
system("nmake -f mk") == 0 or die $!;
} else {
system("make -f mk") == 0 or die $!;
}