summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2017-05-22 23:46:09 +0200
committerDaijiro Wachi <daijiro.wachi@gmail.com>2017-10-25 21:13:49 +0200
commit212f4b981d6a3b39cbbc205c59d0645a7eeec555 (patch)
treeee111e3aad929509460aad5a99905a3f54470bb1 /Makefile
parentf1329543d6d2f092d4dbd516773af07383955543 (diff)
downloadandroid-node-v8-212f4b981d6a3b39cbbc205c59d0645a7eeec555.tar.gz
android-node-v8-212f4b981d6a3b39cbbc205c59d0645a7eeec555.tar.bz2
android-node-v8-212f4b981d6a3b39cbbc205c59d0645a7eeec555.zip
build: add lint-md-build
PR-URL: https://github.com/nodejs/node/pull/12756 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 52fa2ee6d6..051b1e2784 100644
--- a/Makefile
+++ b/Makefile
@@ -945,7 +945,13 @@ bench: bench-net bench-http bench-fs bench-tls
bench-ci: bench
-lint-md:
+lint-md-build:
+ if [ ! -d tools/remark-cli/node_modules ]; then \
+ cd tools/remark-cli && ../../$(NODE) ../../$(NPM) install; fi
+ if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
+ cd tools/remark-preset-lint-node && ../../$(NODE) ../../$(NPM) install; fi
+
+lint-md: lint-md-build
@echo "Running Markdown linter..."
$(NODE) tools/remark-cli/cli.js -q -f \
./*.md doc src lib benchmark tools/doc/ tools/icu/