X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/bef41e1518e54073c1e4a66493036eacc94ba6e3..4c9a3fca063a0b5806daa68558e8e7b5b4a6488c:/Makefile diff --git a/Makefile b/Makefile index 2b6569c9e..08c23eb4c 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,46 @@ EMACS = emacs +CASK = EMACS=${EMACS} cask +DEPENDENCIES = .cask/ -all: clean compile test +all: uncompile compile test -bench: - ${EMACS} -Q \ +bench: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q \ -L . \ - -L lib \ -l context-coloring \ - -l benchmark/context-coloring-benchmark \ + -l context-coloring-benchmark \ -f context-coloring-benchmark-run -compile: - ${EMACS} -Q -batch \ - -L lib \ - -f batch-byte-compile *.el lib/*.el +compile: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ + -f batch-byte-compile *.el + +uncompile: + rm -f *.elc -clean: - rm -f *.elc lib/*.elc +clean: uncompile + rm -rf ${DEPENDENCIES} -test: - ${EMACS} -Q -batch \ +${DEPENDENCIES}: + ${CASK} + +test: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ -L . \ - -L lib \ -l ert \ - -l ert-async \ - -l context-coloring \ - -l test/context-coloring-test.el \ + -l context-coloring-coverage \ + -f context-coloring-coverage-ci-init \ + -l context-coloring-test \ + -f ert-run-tests-batch-and-exit + +cover: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ + -l ert \ + -l context-coloring-coverage \ + -f context-coloring-coverage-local-init \ + -l context-coloring-test \ -f ert-run-tests-batch-and-exit -.PHONY: all bench compile clean test +.PHONY: all bench compile uncompile clean test cover