REPORTER = dot TARGETS ?= unexpected.js lint: @./node_modules/.bin/jshint lib/*.js test/*.js .PHONY: lint unexpected.js: lib/* (echo '/*!' && $@ test-phantomjs: ${TARGETS} @$(eval QUERY=$(shell node -e "console.log(decodeURIComponent(process.argv.pop()))" "${grep}")) \ ./node_modules/.bin/mocha-phantomjs test/tests.html?grep=${QUERY} test: lint mocha .PHONY: test coverage: lib/* NODE_ENV=development ./node_modules/.bin/istanbul cover \ -x unexpected.js \ -x **/vendor/** \ --include-all-sources ./node_modules/mocha/bin/_mocha -- --reporter dot .PHONY: test-browser test-browser: unexpected.js @./node_modules/.bin/serve . travis: lint test coverage