Skip to content

Commit

Permalink
squash: change no-internet var to OFFLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Nov 2, 2017
1 parent 36a737b commit e1b025c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ COVTESTS ?= test-cov
GTEST_FILTER ?= "*"
GNUMAKEFLAGS += --no-print-directory
GCOV ?= gcov
OFFLINE ?= false

ifdef JOBS
PARALLEL_ARGS = -j $(JOBS)
Expand Down Expand Up @@ -976,15 +977,15 @@ lint-md-clean:
$(RM) -r tools/remark-preset-lint-node/node_modules

lint-md-build:
ifndef no-internet
ifeq ($(OFFLINE),false)
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
endif

lint-md: lint-md-build
ifndef no-internet
ifeq ($(OFFLINE),false)
@echo "Running Markdown linter..."
$(NODE) tools/remark-cli/cli.js -q -f \
./*.md doc src lib benchmark tools/doc/ tools/icu/
Expand Down

0 comments on commit e1b025c

Please sign in to comment.