Skip to content

Commit

Permalink
build: suppress lint-md output
Browse files Browse the repository at this point in the history
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: #16551
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Khaidi Chu <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
  • Loading branch information
gibfahn committed Nov 14, 2017
1 parent a41cc02 commit d9a18be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9a18be

Please sign in to comment.