Skip to content

Commit 860d83d

Browse files
flakey5ovflowd
authored andcommitted
use built node if there isn't one in the path already
Signed-off-by: flakey5 <[email protected]>
1 parent 1f6a9d2 commit 860d83d

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
@@ -806,6 +806,14 @@ tools/doc/node_modules: tools/doc/package.json
806806
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
807807
echo "Skipping tools/doc/node_modules (no crypto and/or no ICU)"; \
808808
else \
809+
if ! [ `command -v node` ]; then \
810+
if [ -x "$(NODE)" ] && [ -e "$(NODE)" ]; then \
811+
export PATH=$(dir $(NODE)):${PATH}"; \
812+
else \
813+
echo "No available node, cannot install dependencies"; \
814+
exit 1; \
815+
fi; \
816+
fi; \
809817
cd tools/doc && $(call available-node,$(run-npm-ci)) \
810818
fi
811819

0 commit comments

Comments
 (0)