Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 1 | |
| 2 | # Copyright (C) Igor Sysoev |
| 3 | |
| 4 | |
| 5 | cat << END >> $NGX_MAKEFILE |
| 6 | |
| 7 | $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so: \ |
| 8 | src/http/modules/perl/nginx.pm \ |
| 9 | src/http/modules/perl/nginx.xs \ |
| 10 | src/http/modules/perl/ngx_http_perl_module.h \ |
| 11 | $NGX_OBJS/src/http/modules/perl/Makefile |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 12 | cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/ |
| 13 | |
| 14 | cd $NGX_OBJS/src/http/modules/perl && make |
| 15 | |
Igor Sysoev | 54ed5aa | 2006-10-05 14:18:08 +0000 | [diff] [blame] | 16 | rm -rf $NGX_OBJS/install_perl |
| 17 | |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 18 | |
Igor Sysoev | ae33d01 | 2006-01-17 20:04:32 +0000 | [diff] [blame] | 19 | $NGX_OBJS/src/http/modules/perl/Makefile: \ |
| 20 | src/http/modules/perl/Makefile.PL \ |
| 21 | src/http/modules/perl/nginx.pm |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 22 | cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/ |
| 23 | cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/ |
| 24 | cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/ |
| 25 | |
| 26 | cd $NGX_OBJS/src/http/modules/perl \ |
Igor Sysoev | da173ab | 2006-08-30 10:39:17 +0000 | [diff] [blame] | 27 | && NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \ |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 28 | NGX_PCRE=$PCRE \ |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 29 | NGX_OBJS=$NGX_OBJS \ |
| 30 | $NGX_PERL Makefile.PL \ |
Igor Sysoev | b4887b2 | 2006-12-24 18:12:18 +0000 | [diff] [blame] | 31 | LIB=$NGX_PERL_MODULES \ |
Igor Sysoev | 948265b | 2006-12-24 18:23:11 +0000 | [diff] [blame] | 32 | INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 33 | |
Igor Sysoev | 9bf11aa | 2006-01-16 14:56:53 +0000 | [diff] [blame] | 34 | END |