X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/099f434165d315d53828ec9d7fda18b445ee4942..a1649922afd8053f8ce149e9862e6211607ece06:/Makefile diff --git a/Makefile b/Makefile index 5c8affcb4..4519b7073 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,50 @@ -all: - exit +EMACS = emacs +CASK = EMACS=${EMACS} cask +DEPENDENCIES = .cask/ +SOURCE_FILES = \ + context-coloring.el \ + context-coloring-javascript.el \ + context-coloring-emacs-lisp.el -test: - node_modules/.bin/mocha - emacs -batch -l ert -l test/context-coloring-test.el -f ert-run-tests-batch-and-exit +all: uncompile compile test -benchjs: - node_modules/.bin/matcha +bench: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q \ + -L . \ + -l context-coloring \ + -l context-coloring-benchmark \ + -f context-coloring-benchmark-run -benchel: - emacs -Q -L . -l context-coloring -l benchmark/scenarios.el +compile: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ + -f batch-byte-compile ${SOURCE_FILES} -.PHONY: all test benchmark +uncompile: + rm -f *.elc + +clean: uncompile + rm -rf ${DEPENDENCIES} + +${DEPENDENCIES}: + ${CASK} + +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