summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/perl
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-10-02 19:11:10 +0300
committerMax Romanov <max.romanov@nginx.com>2019-10-02 19:11:10 +0300
commit9b4e45cafcc8f1f74bcfce3071866ee5eab176a5 (patch)
tree0965b0c9334ce2e9280bb0501ad59e1d8a4c90fc /auto/modules/perl
parent2eb6f35ef5a5e72e3b16649dc52c55df617d3f0e (diff)
downloadunit-9b4e45cafcc8f1f74bcfce3071866ee5eab176a5.tar.gz
unit-9b4e45cafcc8f1f74bcfce3071866ee5eab176a5.tar.bz2
Fixed "make tests" build without preceding "make".
Currently almost all Unit object files depends on generated nxt_version.h. This patch adds missing dependence and fixes running make with multiple jobs. This closes #318 issue on GitHub.
Diffstat (limited to 'auto/modules/perl')
-rw-r--r--auto/modules/perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/modules/perl b/auto/modules/perl
index a4fd5437..e9d7e109 100644
--- a/auto/modules/perl
+++ b/auto/modules/perl
@@ -164,7 +164,7 @@ for nxt_src in $NXT_PERL_MODULE_SRCS; do
cat << END >> $NXT_MAKEFILE
-$NXT_BUILD_DIR/$nxt_obj: $nxt_src
+$NXT_BUILD_DIR/$nxt_obj: $nxt_src $NXT_VERSION_H
mkdir -p $NXT_BUILD_DIR/src/perl
\$(CC) -c \$(CFLAGS) $NXT_PERL_CFLAGS \$(NXT_INCS) $NXT_PERL_INCLUDE \\
$nxt_dep_flags \\