]> git.donarmstrong.com Git - org-ref.git/commitdiff
add Makefile
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Tue, 3 Mar 2015 17:28:12 +0000 (12:28 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Tue, 3 Mar 2015 17:28:12 +0000 (12:28 -0500)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..6019338
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+EMACS ?= emacs
+CASK_EXEC ?= cask exec
+
+all: test
+
+test: clean-elc
+       ${MAKE} unit
+
+unit:
+       ${CASK_EXEC} ${EMACS} -Q -batch  -l org-ref-init.el -l org-ref-test.el --eval "(ert t)"
+
+compile:
+       ${CASK_EXEC} ${EMACS} -Q -batch -f batch-byte-compile org-ref-init.el
+
+clean-elc:
+       rm -f f.elc
+
+.PHONY:        all test