Skip to content

Commit 5841deb

Browse files
committed
fixup!
1 parent ee11916 commit 5841deb

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

Makefile

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,7 @@ VERSION=v$(RAWVER)
819819

820820
.PHONY: doc-only
821821
.NOTPARALLEL: doc-only
822-
doc-only: tools/doc/node_modules \
823-
$(apidoc_dirs) $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json out/doc/apilinks.json ## Builds the docs with the local or the global Node.js binary.
824-
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
825-
echo "Skipping doc-only (no crypto or no icu)"; \
826-
fi
822+
doc-only: $(apidoc_dirs) $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json out/doc/apilinks.json ## Builds the docs with the local or the global Node.js binary.
827823

828824
.PHONY: doc
829825
doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation with the new binary.
@@ -841,29 +837,37 @@ out/doc/api: doc/api
841837
# Generate all doc files (individual and all.html/all.json) in a single doc-kit call
842838
# Using grouped targets (&:) so Make knows one command produces all outputs
843839
$(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json &: $(apidoc_sources) tools/doc/node_modules | out/doc/api
844-
$(call available-node, \
845-
$(DOC_KIT) generate \
846-
-t legacy-html-all \
847-
-t legacy-json-all \
848-
-i doc/api/*.md \
849-
--ignore $(skip_apidoc_files) \
850-
-o out/doc/api \
851-
-c ./CHANGELOG.md \
852-
-v $(VERSION) \
853-
--index doc/api/index.md \
854-
--type-map doc/type-map.json \
855-
)
840+
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
841+
echo "Skipping $@ (no crypto and/or no ICU)"; \
842+
else \
843+
$(call available-node, \
844+
$(DOC_KIT) generate \
845+
-t legacy-html-all \
846+
-t legacy-json-all \
847+
-i doc/api/*.md \
848+
--ignore $(skip_apidoc_files) \
849+
-o out/doc/api \
850+
-c ./CHANGELOG.md \
851+
-v $(VERSION) \
852+
--index doc/api/index.md \
853+
--type-map doc/type-map.json \
854+
) \
855+
fi
856856

857857
out/doc/apilinks.json: $(wildcard lib/*.js) tools/doc/node_modules | out/doc
858-
$(call available-node, \
859-
$(DOC_KIT) generate \
860-
-t api-links \
861-
-i lib/*.js \
862-
-o $(@D) \
863-
-c ./CHANGELOG.md \
864-
-v $(VERSION) \
865-
--type-map doc/type-map.json \
866-
) \
858+
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
859+
echo "Skipping $@ (no crypto and/or no ICU)"; \
860+
else \
861+
$(call available-node, \
862+
$(DOC_KIT) generate \
863+
-t api-links \
864+
-i lib/*.js \
865+
-o $(@D) \
866+
-c ./CHANGELOG.md \
867+
-v $(VERSION) \
868+
--type-map doc/type-map.json \
869+
) \
870+
fi
867871

868872
.PHONY: docopen
869873
docopen: doc-only ## Open the documentation in a web browser.

0 commit comments

Comments
 (0)