]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/context-coloring/Makefile
Merge commit '40f67bf039c143758ac070f9693bb0af87b98aba' from context-coloring
[gnu-emacs-elpa] / packages / context-coloring / Makefile
index c26538257a28f039b58b6e4878e48ab1f630ef09..0b370430859399223874f8d957c74a9c2ed07b2a 100644 (file)
@@ -1,40 +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
+       ${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