Commit 942a9ed 1 parent a4557f2 commit 942a9ed Copy full SHA for 942a9ed
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -984,6 +984,7 @@ lint-md-build:
984
984
echo " Markdown linter: installing remark-preset-lint-node into tools/" ; \
985
985
cd tools/remark-preset-lint-node && ../../$(NODE ) ../../$(NPM ) install; fi
986
986
987
+ ifneq ("","$(wildcard tools/remark-cli/node_modules/) ")
987
988
LINT_MD_TARGETS = src lib benchmark tools/doc tools/icu
988
989
LINT_MD_ROOT_DOCS := $(wildcard * .md)
989
990
LINT_MD_FILES := $(shell find $(LINT_MD_TARGETS ) -type f \
@@ -1002,7 +1003,12 @@ tools/.miscmdlintstamp: $(LINT_MD_FILES)
1002
1003
1003
1004
tools/.mdlintstamp : tools/.miscmdlintstamp tools/.docmdlintstamp
1004
1005
1005
- lint-md : | lint-md-build tools/.mdlintstamp
1006
+ lint-md : | tools/.mdlintstamp
1007
+ else
1008
+ lint-md :
1009
+ @echo " The markdown linter is not installed."
1010
+ @echo " To install (requires internet access) run: $ make lint-md-build"
1011
+ endif
1006
1012
1007
1013
LINT_JS_TARGETS = benchmark doc lib test tools
1008
1014
LINT_JS_CMD = tools/eslint/bin/eslint.js --cache \
You can’t perform that action at this time.
0 commit comments