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 libraries \
-l context-coloring \
- -l benchmark/context-coloring-benchmark \
+ -l benchmark/context-coloring-benchmark.el \
-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 *.el
-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-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 clean test
+.PHONY: all bench compile uncompile clean test cover