]> git.kaiwu.me - nginx.git/commitdiff
Configure: rebuild perl module nginx.so if headers are changed.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 15 Feb 2013 16:50:22 +0000 (16:50 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 15 Feb 2013 16:50:22 +0000 (16:50 +0000)
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.

auto/lib/perl/make

index 6fe95af0e17846b70354c611080ec4636d3754f8..b40352abfe251f88ed05eee1fa970deae29aa6f2 100644 (file)
@@ -6,11 +6,12 @@
 cat << END                                                    >> $NGX_MAKEFILE
 
 $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so:         \
+               \$(CORE_DEPS) \$(HTTP_DEPS)                             \
                src/http/modules/perl/nginx.pm                          \
                src/http/modules/perl/nginx.xs                          \
                src/http/modules/perl/ngx_http_perl_module.h            \
                $NGX_OBJS/src/http/modules/perl/Makefile
-       cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
+       cp src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
 
        cd $NGX_OBJS/src/http/modules/perl && \$(MAKE)