summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2019-07-18 20:00:19 +1000
committerRich Trott <rtrott@gmail.com>2019-07-20 09:32:55 -0700
commit9039af83a33af870a074463a0e8d79a0cb95d14c (patch)
tree5ad6b66de96dd361057d54e1281d4b00badb63a5 /Makefile
parent68c83f962e002a47f61648c5aa2adb41dbe6a358 (diff)
downloadandroid-node-v8-9039af83a33af870a074463a0e8d79a0cb95d14c.tar.gz
android-node-v8-9039af83a33af870a074463a0e8d79a0cb95d14c.tar.bz2
android-node-v8-9039af83a33af870a074463a0e8d79a0cb95d14c.zip
build: skip test-ci doc targets if no crypto
PR-URL: https://github.com/nodejs/node/pull/28747 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e14edb2a03..58387ab6dd 100644
--- a/Makefile
+++ b/Makefile
@@ -488,7 +488,11 @@ test-all-suites: | clear-stalled test-build bench-addons-build doc-only ## Run a
CI_NATIVE_SUITES ?= addons js-native-api node-api
CI_JS_SUITES ?= default
-CI_DOC := doctool
+ifeq ($(node_use_openssl), false)
+ CI_DOC := doctool
+else
+ CI_DOC =
+endif
.PHONY: test-ci-native
# Build and test addons without building anything else
@@ -700,7 +704,11 @@ tools/doc/node_modules: tools/doc/package.json
.PHONY: doc-only
doc-only: tools/doc/node_modules \
$(apidoc_dirs) $(apiassets) ## Builds the docs with the local or the global Node.js binary.
- @$(MAKE) out/doc/api/all.html out/doc/api/all.json
+ @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
+ echo "Skipping doc-only (no crypto)"; \
+ else \
+ $(MAKE) out/doc/api/all.html out/doc/api/all.json; \
+ fi
.PHONY: doc
doc: $(NODE_EXE) doc-only