forked from jkitchin/org-ref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (61 loc) · 1.87 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
emacs ?= emacs
CASK ?= cask
CASK_EXEC ?= ${CASK} exec
EL_SOURCES = *.el
SOURCES = ${EL_SOURCES}
INIT = test/init.el
INIT-DEVEL = test/init-devel.el
all: test
test: clean
${CASK_EXEC} ert-runner
unit:
${CASK_EXEC} ${emacs} -Q -batch -L "." -l ${INIT} -l org -l org-ref.el -l test/org-ref-test.el --eval "(ert t)"
orgtest:
${CASK_EXEC} ${emacs} -Q -batch -l ${INIT} -l test/org-test-setup.el -l test/org-ert.el -f org-ert-tangle-tests
mytest: orgtest
${CASK_EXEC} ${emacs} -Q -batch -l ${INIT} -l test/org-test-setup.el -l test/*-test.el -f ert-run-tests-batch-and-exit
compile:
${CASK} build
clean:
rm -f *.elc
github:
open http://github.com/jkitchin/org-ref
travis:
open https://travis-ci.org/jkitchin/org-ref
melpa:
open https://melpa.org/#/org-ref
package : ${SOURCES}
${CASK} package
no-user:
${CASK_EXEC} ${emacs} -Q --eval="(setq scimax-load-user-dir nil)" -l ${INIT}
reftex:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
--eval="(setq org-ref-completion-library 'org-ref-reftex)" \
-l ${INIT} tests/test-1.org
helm-bibtex:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
--eval="(setq org-ref-completion-library 'org-ref-helm-bibtex)" \
-l ${INIT} \
tests/test-1.org
helm-cite:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
--eval="(setq org-ref-completion-library 'org-ref-helm-cite)" \
-l ${INIT} tests/test-1.org
ivy:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
--eval="(setq org-ref-completion-library 'org-ref-ivy-cite)" \
-l ${INIT} \
tests/test-1.org
devel:
${CASK_EXEC} ${emacs} -Q \
--eval="(setq scimax-load-user-dir nil)" \
--eval="(setq org-ref-completion-library 'org-ref-ivy-cite)" \
-l ${INIT} \
-l ${INIT-DEVEL}
vanilla:
${CASK_EXEC} ${emacs} -Q -l ${INIT} tests/test-1.org
.PHONY: all test package clean-elc test-melpa