forked from jkitchin/org-ref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 1.05 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
emacs ?= emacs
CASK ?= cask
CASK_EXEC ?= ${CASK} exec
EL_SOURCES = *.el
SOURCES = ${EL_SOURCES}
all: test
test: clean-elc
${MAKE} unit
unit:
${CASK_EXEC} ${emacs} -Q -batch -L "." -l org -l org-ref.el -l org-ref-test.el --eval "(ert t)"
mytest:
${CASK_EXEC} ${emacs} -Q -batch -l ../init.el -l tests/org-test.el -l org-ref-test.el -f ert-run-tests-batch-and-exit
compile:
${CASK_EXEC} ${emacs} -Q -batch -l ../init.el -L "." -f batch-byte-compile *.el
clean-elc:
rm -f *.elc
github:
open http://github.com/jkitchin/org-ref
release:
git checkout melpa
git merge master
git checkout master
git push origin melpa
# this makes the package so I can test it.
melpa: release
${MAKE} -C /Users/jkitchin/Dropbox/kitchingroup/jmax/melpa clean
${MAKE} -C /Users/jkitchin/Dropbox/kitchingroup/jmax/melpa recipes/org-ref
${MAKE} -C /Users/jkitchin/Dropbox/kitchingroup/jmax/melpa packages/archive-contents
test-melpa: melpa
rm -fr sandbox
${emacs} -Q -l tests/test-melpa.el
package : ${SOURCES}
${CASK} package
.PHONY: all test package clean-elc test-melpa