forked from mooz/js2-mode
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
30 lines (21 loc) · 814 Bytes
/
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
# -*- Makefile -*-
EMACS = emacs
# Compile with noninteractive and relatively clean environment.
BATCHFLAGS = -batch -Q
SRCS = js2-mode.el js2-imenu-extras.el
OBJS = $(SRCS:.el=.elc)
%.elc: %.el
${EMACS} $(BATCHFLAGS) -L . -f batch-byte-compile $^
all: $(OBJS)
clean:
-rm -f $(OBJS)
test:
${EMACS} $(BATCHFLAGS) -L . -l js2-mode.el -l js2-old-indent.el -l tests/parser.el \
-l tests/indent.el -l tests/externs.el -l tests/json-path.el -l tests/consume.el \
-l tests/navigation.el -l tests/flow.el -l tests/walt.el -f ert-run-tests-batch-and-exit
flow:
${EMACS} $(BATCHFLAGS) -L . -l js2-mode.el -l js2-old-indent.el -l tests/flow.el \
-f ert-run-tests-batch-and-exit
walt:
${EMACS} $(BATCHFLAGS) -L . -l js2-mode.el -l js2-old-indent.el -l tests/walt.el \
-f ert-run-tests-batch-and-exit