build: remove redundant Makefile target
The only target that uses the `tools/doc/node_modules/js-yaml/package.json` target is `doc-only`. As a result of a recent change, it has `tools/doc/node_modules` as a prerequisite, which does the exact same npm install as `tools/doc/node_modules/js-yaml/package.json`. Remove `tools/doc/node_modules/js-yaml/package.json` as unnecessary. PR-URL: https://github.com/nodejs/node/pull/21915 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
c57e11c2f6
commit
b38b8d3b9d
8
Makefile
8
Makefile
@ -612,11 +612,6 @@ apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_as
|
||||
.PHONY: doc-only
|
||||
doc-only: tools/doc/node_modules \
|
||||
$(apidoc_dirs) $(apiassets) ## Builds the docs with the local or the global Node.js binary.
|
||||
# If it's a source tarball, assets are already in doc/api/assets,
|
||||
# no need to install anything, we have already copied the docs over
|
||||
if [ ! -d doc/api/assets ]; then \
|
||||
$(MAKE) tools/doc/node_modules/js-yaml/package.json; \
|
||||
fi;
|
||||
@$(MAKE) out/doc/api/all.html out/doc/api/all.json
|
||||
|
||||
.PHONY: doc
|
||||
@ -655,9 +650,6 @@ available-node = \
|
||||
run-npm-install = $(PWD)/$(NPM) install --production --no-package-lock
|
||||
run-npm-ci = $(PWD)/$(NPM) ci
|
||||
|
||||
tools/doc/node_modules/js-yaml/package.json:
|
||||
cd tools/doc && $(call available-node,$(run-npm-install))
|
||||
|
||||
gen-json = tools/doc/generate.js --format=json $< > $@
|
||||
gen-html = tools/doc/generate.js --node-version=$(FULLVERSION) --format=html \
|
||||
--analytics=$(DOCS_ANALYTICS) $< > $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user