build: fix lint-md-build dependency
PR-URL: https://github.com/nodejs/node/pull/18981 Fixes: https://github.com/nodejs/node/issues/18978 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
c3eb3efa31
commit
0bff955b6d
19
Makefile
19
Makefile
@ -1056,15 +1056,18 @@ lint-md-clean:
|
||||
$(RM) -r tools/remark-preset-lint-node/node_modules
|
||||
$(RM) tools/.*mdlintstamp
|
||||
|
||||
.PHONY: lint-md-build
|
||||
lint-md-build:
|
||||
@if [ ! -d tools/remark-cli/node_modules ]; then \
|
||||
echo "Markdown linter: installing remark-cli into tools/"; \
|
||||
cd tools/remark-cli && $(call available-node,$(run-npm-install)) fi
|
||||
@if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
|
||||
echo "Markdown linter: installing remark-preset-lint-node into tools/"; \
|
||||
cd tools/remark-preset-lint-node && $(call available-node,$(run-npm-install)) fi
|
||||
tools/remark-cli/node_modules: tools/remark-cli/package.json
|
||||
@echo "Markdown linter: installing remark-cli into tools/"
|
||||
@cd tools/remark-cli && $(call available-node,$(run-npm-install))
|
||||
|
||||
tools/remark-preset-lint-node/node_modules: \
|
||||
tools/remark-preset-lint-node/package.json
|
||||
@echo "Markdown linter: installing remark-preset-lint-node into tools/"
|
||||
@cd tools/remark-preset-lint-node && $(call available-node,$(run-npm-install))
|
||||
|
||||
.PHONY: lint-md-build
|
||||
lint-md-build: tools/remark-cli/node_modules \
|
||||
tools/remark-preset-lint-node/node_modules
|
||||
|
||||
.PHONY: lint-md
|
||||
ifneq ("","$(wildcard tools/remark-cli/node_modules/)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user