#!/usr/bin/make -f # generate documentation unless nodoc requested ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) DOCS = README.html README.txt endif ESLINT = eslint --format tap MOCHA = mocha --reporter tap ESLINT_BROKEN = \ lib/utils/rjs.js \ lib/utils/ast.js \ lib/rules/amd-function-arity.js \ lib/rules/sort-amd-paths.js override_dh_auto_build: $(DOCS) override_dh_auto_test: $(strip find lib tests/lib -type f -name '*.js' \ $(patsubst %,-not -path '%',$(ESLINT_BROKEN)) \ -exec $(ESLINT) {} +) $(ESLINT) $(ESLINT_BROKEN) | debian/tap-todo \ 'lib/utils/rjs.js::Arrow function used ambiguously with a conditional expression.*line: 82.*ruleId: no-confusing-arrow' \ "lib/utils/ast.js::Assignment to function parameter 'node'.*line: 151.*ruleId: no-param-reassign" \ 'lib/rules/amd-function-arity.js::Arrow function used ambiguously with a conditional expression.*line: 82.*ruleId: no-confusing-arrow' \ 'lib/rules/sort-amd-paths.js::Arrow function used ambiguously with a conditional expression.*line: 74.*ruleId: no-confusing-arrow' $(MOCHA) tests/lib/*/*.js override_dh_installdocs: dh_installdocs --all -- $(DOCS) override_dh_clean: dh_clean -- $(DOCS) %.html: %.md pandoc --from gfm-raw_html --to html --standalone --output $@ $< %.txt: %.md pandoc --from gfm-raw_html --to plain --output $@ $< %: dh $@