-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
30 lines (22 loc) · 817 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
# EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs
# EMACS = /Users/rhonig/Downloads/Emacs.app/Contents/MacOS/Emacs
EMACS ?= emacs
CASK ?= cask
CASKEMACS = $(CASK) exec $(EMACS)
LOAD-ORGMODE = -L org-mode/lisp
# http://stackoverflow.com/questions/3931741/why-does-make-think-the-target-is-up-to-date
.PHONY: install build test clean
all: install build test clean
# install dependencies
install:
$(CASK) install
build:
$(CASK) build
test:
$(CASKEMACS) -batch --eval="(message (concat \"Org version: \" (org-version) \" on Emacs version: \" (emacs-version)))"
$(CASK) exec ert-runner
test2:
$(CASKEMACS) -batch ${LOAD-ORGMODE} --eval="(message (concat \"Org version: \" (org-version) \" on Emacs version: \" (emacs-version)))"
$(CASK) exec ert-runner -l org-mode/lisp/org.el
clean:
$(CASK) clean-elc