]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
Fix improperly prepared test.
[gnu-emacs-elpa] / Makefile
index 3b3e7d6258ad83ed1c09abc2f700806b59ef4965..f729409b9c8d4741e254d0cc2f86193618d49435 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,41 +1,46 @@
-all: clean install compile test
+EMACS = emacs
+CASK = EMACS=${EMACS} cask
+DEPENDENCIES = .cask/
 
-bench: benchel benchjs
+all: uncompile compile test
 
-benchel:
-       emacs -Q \
+bench: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q \
        -L . \
-       -L lib/js2-mode \
        -l context-coloring \
-       -l benchmark/context-coloring-benchmark \
+       -l benchmark/context-coloring-benchmark.el \
        -f context-coloring-benchmark-run
 
-benchjs:
-       node_modules/.bin/matcha
-
-compile:
-       emacs -Q -batch \
-       -L lib/js2-mode \
+compile: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
        -f batch-byte-compile *.el
 
-clean:
-       rm -f *.log benchmark/*.log *.elc
+uncompile:
+       rm -f *.elc
 
-install:
-       npm install
+clean: uncompile
+       rm -rf ${DEPENDENCIES}
 
-test: testel testjs
+${DEPENDENCIES}:
+       ${CASK}
 
-testel:
-       emacs -Q -batch \
+test: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
        -L . \
-       -L lib/js2-mode \
        -l ert \
-       -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
 
-testjs:
-       node_modules/.bin/mocha
+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 benchel benchjs compile clean install test testel testjs
+.PHONY: all bench compile uncompile clean test cover