X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/c7d1adfab591359727e3c69b6df3efc337cdbe7d..4c9a3fca063a0b5806daa68558e8e7b5b4a6488c:/Makefile diff --git a/Makefile b/Makefile index aa9f9f650..08c23eb4c 100644 --- a/Makefile +++ b/Makefile @@ -1,35 +1,46 @@ -all: clean install compile test +EMACS = emacs +CASK = EMACS=${EMACS} cask +DEPENDENCIES = .cask/ -bench: benchel benchjs +all: uncompile compile test -benchel: - emacs -Q -L . \ +bench: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q \ + -L . \ -l context-coloring \ - -l benchmark/context-coloring-benchmark \ + -l context-coloring-benchmark \ -f context-coloring-benchmark-run -benchjs: - node_modules/.bin/matcha +compile: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ + -f batch-byte-compile *.el -compile: - emacs -Q -batch -f batch-byte-compile *.el +uncompile: + rm -f *.elc -clean: - rm -f *.log benchmark/*.log *.elc +clean: uncompile + rm -rf ${DEPENDENCIES} -install: - npm install +${DEPENDENCIES}: + ${CASK} -test: testel testjs - -testel: - emacs -Q -batch -L . \ +test: ${DEPENDENCIES} + ${CASK} exec ${EMACS} -Q -batch \ + -L . \ -l ert \ - -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 -testjs: - node_modules/.bin/mocha +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 benchel benchjs compile clean install test testel testjs +.PHONY: all bench compile uncompile clean test cover