summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-10-18 13:38:30 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-10-18 13:38:30 +0300
commit0ee8de55433725f3084a3ccd9664f1eca365e9af (patch)
treed2ae3e392d2967c38ecfc9fa47e73a2be4af4d1f
parent49ec17b1ef1d35cda54dc545c1d37d02b35afdcb (diff)
downloadunit-0ee8de55433725f3084a3ccd9664f1eca365e9af.tar.gz
unit-0ee8de55433725f3084a3ccd9664f1eca365e9af.tar.bz2
Fixed Makefile target for NodeJS.
-rw-r--r--auto/modules/nodejs6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto/modules/nodejs b/auto/modules/nodejs
index 25e75f01..56f84876 100644
--- a/auto/modules/nodejs
+++ b/auto/modules/nodejs
@@ -115,7 +115,7 @@ if grep ^$NXT_NODE: $NXT_MAKEFILE 2>&1 > /dev/null; then
fi
NXT_NODE_TMP=${NXT_BUILD_DIR}/src/${NXT_NODE}/unit-http
-NXT_NODE_TARBALL=${PWD}/${NXT_BUILD_DIR}/${NXT_NODE}-unit-http.tar.gz
+NXT_NODE_TARBALL=${NXT_BUILD_DIR}/${NXT_NODE}-unit-http.tar.gz
NXT_NODE_EXPORTS="export UNIT_SRC_PATH=${PWD}/src && \
export UNIT_LIB_STATIC_PATH=${PWD}/${NXT_BUILD_DIR}/libunit.a"
@@ -142,13 +142,13 @@ ${NXT_NODE_TARBALL}: ${NXT_NODE}-copy
${NXT_NODE}-install: ${NXT_NODE_TARBALL} \
$NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC
${NXT_NODE_EXPORTS} && \\
- ${NXT_NPM} install -g ${NXT_NODE_TARBALL} --unsafe-perm=true
+ ${NXT_NPM} install -g ${PWD}/${NXT_NODE_TARBALL} --unsafe-perm=true
${NXT_NODE}-local-install: ${NXT_NODE_TARBALL} \
$NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC
${NXT_NODE_EXPORTS} && \\
mkdir -p \$(DESTDIR) && \\
- cd \$(DESTDIR) && ${NXT_NPM} install ${NXT_NODE_TARBALL}
+ cd \$(DESTDIR) && ${NXT_NPM} install ${PWD}/${NXT_NODE_TARBALL}
${NXT_NODE}-build: ${NXT_NODE}