-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.PL
More file actions
49 lines (47 loc) · 1.3 KB
/
Makefile.PL
File metadata and controls
49 lines (47 loc) · 1.3 KB
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
40
41
42
43
44
45
46
47
48
49
use 5.008;
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'AVLTree',
VERSION_FROM => 'lib/AVLTree.pm',
ABSTRACT_FROM => 'lib/AVLTree.pm',
LICENSE => 'perl_5',
PL_FILES => {},
MIN_PERL_VERSION => '5.008',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '0',
},
BUILD_REQUIRES => {
'Test::More' => '0',
'Test::Deep' => '0',
'Test::LeakTrace' => '0'
},
PREREQ_PM => {
#'ABC' => '1.6',
#'Foo::Bar::Module' => '5.0401',
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/avullo/AVLTree.git',
web => 'https://github.com/avullo/AVLTree',
},
},
},
LIBS => [''], # e.g., '-lm',
DEFINE => '-DENABLE_DEBUG', # e.g., '-DHAVE_SOMETHING'
INC => '-Iavltree', # e.g., '-I/usr/include/other'
MYEXTLIB => 'avltree/libavltree$(LIB_EXT)',
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'AVLTree-*' },
);
sub MY::postamble {
'
$(MYEXTLIB): avltree/Makefile
cd avltree && $(MAKE) $(PASSTHRU)
';
}