Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28a5362

Browse filesBrowse files
joyeecheungaddaleax
authored andcommitted
build: fix lint-md-build dependency
PR-URL: #18981 Fixes: #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>
1 parent ef8f90f commit 28a5362
Copy full SHA for 28a5362

File tree

Expand file treeCollapse file tree

1 file changed

+11
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-8
lines changed
Open diff view settings
Collapse file

‎Makefile‎

Copy file name to clipboardExpand all lines: Makefile
+11-8Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,15 +1056,18 @@ lint-md-clean:
10561056
$(RM) -r tools/remark-preset-lint-node/node_modules
10571057
$(RM) tools/.*mdlintstamp
10581058

1059-
.PHONY: lint-md-build
1060-
lint-md-build:
1061-
@if [ ! -d tools/remark-cli/node_modules ]; then \
1062-
echo "Markdown linter: installing remark-cli into tools/"; \
1063-
cd tools/remark-cli && $(call available-node,$(run-npm-install)) fi
1064-
@if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
1065-
echo "Markdown linter: installing remark-preset-lint-node into tools/"; \
1066-
cd tools/remark-preset-lint-node && $(call available-node,$(run-npm-install)) fi
1059+
tools/remark-cli/node_modules: tools/remark-cli/package.json
1060+
@echo "Markdown linter: installing remark-cli into tools/"
1061+
@cd tools/remark-cli && $(call available-node,$(run-npm-install))
1062+
1063+
tools/remark-preset-lint-node/node_modules: \
1064+
tools/remark-preset-lint-node/package.json
1065+
@echo "Markdown linter: installing remark-preset-lint-node into tools/"
1066+
@cd tools/remark-preset-lint-node && $(call available-node,$(run-npm-install))
10671067

1068+
.PHONY: lint-md-build
1069+
lint-md-build: tools/remark-cli/node_modules \
1070+
tools/remark-preset-lint-node/node_modules
10681071

10691072
.PHONY: lint-md
10701073
ifneq ("","$(wildcard tools/remark-cli/node_modules/)")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.