From d9a18beaa6c27f020d794e9c4f32bfd9de26848d Mon Sep 17 00:00:00 2001 From: Gibson Fahnestock Date: Fri, 27 Oct 2017 14:15:01 +0100 Subject: [PATCH] build: suppress lint-md output We don't need to print out the output if we've already installed it, at the same time we do want to see some output when we haven't installed. PR-URL: https://github.com/nodejs/node/pull/16551 Reviewed-By: Colin Ihrig Reviewed-By: Anatoli Papirovski Reviewed-By: Joyee Cheung Reviewed-By: James M Snell Reviewed-By: Khaidi Chu Reviewed-By: Daijiro Wachi --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c2f872daed698c..bc337ab96d90ce 100644 --- a/Makefile +++ b/Makefile @@ -976,9 +976,11 @@ lint-md-clean: $(RM) -r tools/remark-preset-lint-node/node_modules lint-md-build: - if [ ! -d tools/remark-cli/node_modules ]; then \ + @if [ ! -d tools/remark-cli/node_modules ]; then \ + echo "Markdown linter: installing remark-cli into tools/"; \ cd tools/remark-cli && ../../$(NODE) ../../$(NPM) install; fi - if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \ + @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 && ../../$(NODE) ../../$(NPM) install; fi lint-md: lint-md-build