]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
Reorganize files.
[gnu-emacs-elpa] / Makefile
index 64b7d75731bfb68c6aa181624105c28a4e9ad8a3..08c23eb4ced0671a843d33d0e6fae94167a35d9b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,46 @@
-all: clean install compile test
+EMACS = emacs
+CASK = EMACS=${EMACS} cask
+DEPENDENCIES = .cask/
 
-benchjs:
-       node_modules/.bin/matcha
+all: uncompile compile test
 
-benchel:
-       emacs -Q -L . -l context-coloring -l benchmark/scenarios.el
+bench: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q \
+       -L . \
+       -l context-coloring \
+       -l context-coloring-benchmark \
+       -f context-coloring-benchmark-run
 
-compile:
-       emacs -batch -f batch-byte-compile *.el
+compile: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
+       -f batch-byte-compile *.el
 
-clean:
-       rm -rf node_modules
-       rm *.elc
+uncompile:
+       rm -f *.elc
 
-install:
-       npm install --production
+clean: uncompile
+       rm -rf ${DEPENDENCIES}
 
-test:
-       node_modules/.bin/mocha
-       emacs -batch -L . -l ert -l context-coloring -l test/context-coloring-test.el -f ert-run-tests-batch-and-exit
+${DEPENDENCIES}:
+       ${CASK}
 
-.PHONY: all benchjs benchel compile clean install test
+test: ${DEPENDENCIES}
+       ${CASK} exec ${EMACS} -Q -batch \
+       -L . \
+       -l ert \
+       -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 uncompile clean test cover