Skip to content

Commit 9ea9162

Browse files
committed
use built node if there isn't one in the path already
Signed-off-by: flakey5 <[email protected]>
1 parent 5f877a1 commit 9ea9162

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,14 @@ tools/doc/node_modules: tools/doc/package.json
798798
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
799799
echo "Skipping tools/doc/node_modules (no crypto and/or no ICU)"; \
800800
else \
801+
if ! [ `command -v node` ]; then \
802+
if [ -x "$(NODE)" ] && [ -e "$(NODE)" ]; then \
803+
export PATH=$(dir $(NODE)):${PATH}"; \
804+
else \
805+
echo "No available node, cannot install dependencies"; \
806+
exit 1; \
807+
fi; \
808+
fi; \
801809
cd tools/doc && $(call available-node,$(run-npm-ci)) \
802810
fi
803811

0 commit comments

Comments
 (0)