Only re-run lint when source files have changed

This commit is contained in:
Tom Payne
2012-09-26 23:12:51 +02:00
parent 9c798f410e
commit 8ffdaad5f5
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/bin/plovr*.jar
/build/lint-timestamp
/build/ol.js
/build/ol-all.js
/build/proj4js-combined.js

View File

@@ -104,8 +104,10 @@ serve: $(PLOVR_JAR) build/require-all.js
java -jar $(PLOVR_JAR) serve build/*.json demos/*/*.json
.PHONY: lint
lint:
gjslint --strict --limited_doc_files=$(subst $(space),$(comma),$(shell find externs -name \*.js)) $(SRC) $(filter-out $(TARGETS),$(shell find demos -name \*.js))
lint: build/lint-timestamp
build/lint-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 $@
.PHONY: plovr
plovr: $(PLOVR_JAR)
@@ -123,6 +125,7 @@ test:
$(PHANTOMJS) test/phantom-jasmine/run_jasmine_test.coffee test/ol.html
clean:
rm -f build/lint-timestamp
rm -f build/ol.js
rm -f build/ol-all.js
rm -f build/require-all.js