-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1009 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
CASK ?= cask
EMACS ?= emacs
all:
${MAKE} clean-elc
${MAKE} unit
${MAKE} build-strict
${MAKE} unit
${MAKE} clean-elc
unit:
${CASK} exec ert-runner
test:
${CASK} exec ${EMACS} --version
${CASK} exec ${EMACS} -Q --batch -L . -l test/test-helper.el \
-l test/r-like-example-test.el \
-f ert-run-tests-batch-and-exit r-like-example.el
exec-examples:
${CASK} exec ${EMACS} --version
${CASK} exec ${EMACS} -Q --batch -L . \
-l test/test-helper.el \
-l r-like-example.el \
-l examples/elisp-examples.el \
--eval \
"(progn (require 'cl) (require 'f) (require 'json) (require 'em-unix) \
(ex--exec-all-examples ex-hash))"
build :
${CASK} exec $(EMACS) -Q --batch -L . --eval \
"(progn \
(batch-byte-compile))" r-like-example.el
build-strict:
${CASK} exec ${EMACS} -Q --batch -L . --eval \
"(progn \
(setq byte-compile-error-on-warn t) \
(batch-byte-compile))" r-like-example.el
clean-elc:
rm -f *.elc
rm -f test/*.elc
.PHONY: all unit test build build-strict clean-elc