-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (41 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
EMACS ?= emacs
CASK ?= EMACS=${EMACS} cask
DEPENDENCIES = .cask/
SOURCE_FILES = \
context-coloring.el \
context-coloring-javascript.el \
context-coloring-emacs-lisp.el
all: uncompile compile test
bench: ${DEPENDENCIES}
${CASK} exec ${EMACS} -Q \
-L . \
-l context-coloring \
-l context-coloring-benchmark \
-f context-coloring-benchmark-run
compile: ${DEPENDENCIES}
${CASK} exec ${EMACS} -Q -batch \
-L . \
-f batch-byte-compile ${SOURCE_FILES}
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