X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/f9b63e405daf25088fa663c3a1c65f66701b914a..e2f402c339544ecd2fca0b28d70ecd6bf8106bce:/packages/context-coloring/Makefile diff --git a/packages/context-coloring/Makefile b/packages/context-coloring/Makefile index 3a6a0be00..0b3704308 100644 --- a/packages/context-coloring/Makefile +++ b/packages/context-coloring/Makefile @@ -1,41 +1,52 @@ +CASK = cask EMACS = emacs -DEPENDENCIES = libraries/ert-async.el libraries/js2-mode.el +DEPENDENCIES = .cask/ +SCOPIFIER_PORT = $$(lsof -t -i :6969) +KILL_SCOPIFIER = if [ -n "${SCOPIFIER_PORT}" ]; then kill ${SCOPIFIER_PORT}; fi all: uncompile compile test bench: ${DEPENDENCIES} - ${EMACS} -Q \ + ${CASK} exec ${EMACS} -Q \ -L . \ - -L libraries \ -l context-coloring \ - -l benchmark/context-coloring-benchmark \ + -l benchmark/context-coloring-benchmark.el \ -f context-coloring-benchmark-run compile: ${DEPENDENCIES} - ${EMACS} -Q -batch \ + ${CASK} exec ${EMACS} -Q -batch \ -L . \ - -L libraries \ - -f batch-byte-compile *.el libraries/*.el + -f batch-byte-compile *.el uncompile: - rm -f *.elc libraries/*.elc + rm -f *.elc clean: uncompile - rm -f ${DEPENDENCIES} + rm -rf ${DEPENDENCIES} ${DEPENDENCIES}: - ${EMACS} -Q -batch \ - -l scripts/download-dependencies.el \ - -f download-dependencies + ${CASK} test: ${DEPENDENCIES} - ${EMACS} -Q -batch \ + ${KILL_SCOPIFIER} + ${CASK} exec ${EMACS} -Q -batch \ -L . \ - -L libraries \ -l ert \ -l ert-async \ - -l context-coloring \ + -l test/context-coloring-coverage.el \ + -f context-coloring-coverage-ci-init \ + -l test/context-coloring-test.el \ + -f ert-run-tests-batch-and-exit + +cover: ${DEPENDENCIES} + ${KILL_SCOPIFIER} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ + -l ert \ + -l ert-async \ + -l test/context-coloring-coverage.el \ + -f context-coloring-coverage-local-init \ -l test/context-coloring-test.el \ -f ert-run-tests-batch-and-exit -.PHONY: all bench compile uncompile clean test +.PHONY: all bench compile uncompile clean test cover