Make make lint ignore demos/*.combined.js file

This commit is contained in:
Éric Lemoine
2012-09-28 13:50:24 +02:00
parent 31411ae33f
commit 11915549a3

View File

@@ -3,7 +3,6 @@ PHANTOMJS = phantomjs
PLOVR_JAR = bin/plovr-b254c26318c5.jar
SPEC = $(shell find test/spec -name \*.js)
SRC = $(shell find exports externs src/ol -name \*.js)
TARGETS = $(shell find demos -name advanced-optimizations.js)
EXAMPLES = $(shell find demos -maxdepth 1 -name \*.html)
comma := ,
empty :=
@@ -51,7 +50,7 @@ serve: $(PLOVR_JAR) build/require-all.js
lint: build/lint-src-timestamp build/lint-spec-timestamp
build/lint-src-timestamp: $(SRC)
gjslint --strict --limited_doc_files=$(subst $(space),$(comma),$(shell find externs -name \*.js)) $(SRC) $(filter-out $(TARGETS),$(shell find demos -name \*.js)) && touch $@
gjslint --strict --limited_doc_files=$(subst $(space),$(comma),$(shell find externs -name \*.js)) $(SRC) $(filter-out $(shell find demos -name \*.combined.js),$(shell find demos -name \*.js)) && touch $@
build/lint-spec-timestamp: $(SPEC)
gjslint $(SPEC) && touch $@