-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.PL
executable file
·40 lines (31 loc) · 1.02 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
40
#!/usr/bin/perl
use strict;
use warnings;
use ExtUtils::MakeMaker;
use Apache::TestMM qw(test clean);
use Apache::TestRunPerl ();
use FindBin;
sub MY::postamble { <<"END"; }
rpm: dist
rpmbuild -ta GRNOC-WebService-\$(VERSION).tar.gz
test_jenkins :
make test PERL_TEST_HARNESS_DUMP_TAP=$FindBin::Bin/tap/
END
WriteMakefile(
NAME => 'GRNOC::WebService',
AUTHOR => 'GRNOC Software Engineering',
VERSION_FROM => 'lib/GRNOC/WebService.pm',
PL_FILES => {},
PREREQ_PM => {
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'GRNOC-WebService*' },
);
my $apxs_loc = '/usr/sbin/apxs';
if(-e '/usr/bin/apxs'){
$apxs_loc = '/usr/bin/apxs';
}
push(@ARGV, '-apxs', $apxs_loc);
push(@ARGV, '-documentroot', "$FindBin::Bin/t/htdocs/");
Apache::TestMM::filter_args();
Apache::TestRunPerl->generate_script();