]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
Fix improperly prepared test.
[gnu-emacs-elpa] / Makefile
index f5e8b7117de934d11b195fdef8b631b66b816fdd..f729409b9c8d4741e254d0cc2f86193618d49435 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,46 @@
-test:
-       emacs -batch -l ert -l context-coloring-test.el -f ert-run-tests-batch-and-exit
+EMACS = emacs
+CASK = EMACS=${EMACS} cask
+DEPENDENCIES = .cask/
+
+all: uncompile compile test
+
+bench: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q \
+       -L . \
+       -l context-coloring \
+       -l benchmark/context-coloring-benchmark.el \
+       -f context-coloring-benchmark-run
+
+compile: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
+       -f batch-byte-compile *.el
+
+uncompile:
+       rm -f *.elc
+
+clean: uncompile
+       rm -rf ${DEPENDENCIES}
+
+${DEPENDENCIES}:
+       ${CASK}
+
+test: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
+       -l ert \
+       -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}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
+       -l ert \
+       -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 cover