annotate auto/lib/perl/make @ 5070:3099747ddbb5

Configure: rebuild perl module nginx.so if headers are changed. Note: the "-p" argument of cp(1) dropped intentionally, to force nginx.so rebuild. It is considered too boring to properly list all dependencies in Makefile.PL.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 15 Feb 2013 16:50:22 +0000
parents ae3ebf5ac8cd
children 6dd4875eb526
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
1
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
2 # Copyright (C) Igor Sysoev
4412
d620f497c50f Copyright updated.
Maxim Konovalov <maxim@nginx.com>
parents: 1187
diff changeset
3 # Copyright (C) Nginx, Inc.
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
4
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
5
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
6 cat << END >> $NGX_MAKEFILE
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
7
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
8 $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so: \
5070
3099747ddbb5 Configure: rebuild perl module nginx.so if headers are changed.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4945
diff changeset
9 \$(CORE_DEPS) \$(HTTP_DEPS) \
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
10 src/http/modules/perl/nginx.pm \
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
11 src/http/modules/perl/nginx.xs \
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
12 src/http/modules/perl/ngx_http_perl_module.h \
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
13 $NGX_OBJS/src/http/modules/perl/Makefile
5070
3099747ddbb5 Configure: rebuild perl module nginx.so if headers are changed.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4945
diff changeset
14 cp src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
15
4841
95ce3172493e Configure: fixed make macros to use parentheses instead of braces.
Maxim Dounin <mdounin@mdounin.ru>
parents: 4740
diff changeset
16 cd $NGX_OBJS/src/http/modules/perl && \$(MAKE)
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
17
740
5187a63d9fca force perl modules reinstallation after rebuilding
Igor Sysoev <igor@sysoev.ru>
parents: 681
diff changeset
18 rm -rf $NGX_OBJS/install_perl
5187a63d9fca force perl modules reinstallation after rebuilding
Igor Sysoev <igor@sysoev.ru>
parents: 681
diff changeset
19
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
20
601
77f77f53214a nginx-0.3.22-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 599
diff changeset
21 $NGX_OBJS/src/http/modules/perl/Makefile: \
77f77f53214a nginx-0.3.22-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 599
diff changeset
22 src/http/modules/perl/Makefile.PL \
77f77f53214a nginx-0.3.22-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 599
diff changeset
23 src/http/modules/perl/nginx.pm
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
24 cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
25 cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
26 cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
27
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
28 cd $NGX_OBJS/src/http/modules/perl \
681
7e24168b0853 nginx-0.4.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents: 601
diff changeset
29 && NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \
4945
ae3ebf5ac8cd Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents: 4841
diff changeset
30 NGX_INCS="$CORE_INCS $NGX_OBJS $HTTP_INCS" \
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
31 $NGX_PERL Makefile.PL \
948
12077affd903 backout the r945: the nginx.pm could not be loaded at all,
Igor Sysoev <igor@sysoev.ru>
parents: 944
diff changeset
32 LIB=$NGX_PERL_MODULES \
950
9581fba9ea12 fix for nginx.pm default installation
Igor Sysoev <igor@sysoev.ru>
parents: 948
diff changeset
33 INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
599
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
34
869b6444d234 nginx-0.3.21-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
35 END