]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
Version 8.0.1.
[gnu-emacs-elpa] / Makefile
index 1df5088a6e6b96ccf356f0da337f7d99eb9444e9..4519b7073e74f17c3d7cbfe41e2d2c5c134af0f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,50 @@
 EMACS = emacs
+CASK = EMACS=${EMACS} cask
+DEPENDENCIES = .cask/
+SOURCE_FILES = \
+       context-coloring.el \
+       context-coloring-javascript.el \
+       context-coloring-emacs-lisp.el
 
-all: clean compile test
+all: uncompile compile test
 
-bench:
-       ${EMACS} -Q \
+bench: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q \
        -L . \
-       -L libraries \
        -l context-coloring \
-       -l benchmark/context-coloring-benchmark \
+       -l context-coloring-benchmark \
        -f context-coloring-benchmark-run
 
-compile:
-       ${EMACS} -Q -batch \
+compile: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
        -L . \
-       -L libraries \
-       -f batch-byte-compile *.el libraries/*.el
+       -f batch-byte-compile ${SOURCE_FILES}
 
-clean:
-       rm -f *.elc libraries/*.elc
+uncompile:
+       rm -f *.elc
 
-test:
-       ${EMACS} -Q -batch \
+clean: uncompile
+       rm -rf ${DEPENDENCIES}
+
+${DEPENDENCIES}:
+       ${CASK}
+
+test: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
        -L . \
-       -L libraries \
        -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