forked from clojure-emacs/clojure-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 762 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
CASK = cask
export EMACS ?= emacs
EMACSFLAGS =
PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
SRCS = $(wildcard *.el)
OBJS = $(SRCS:.el=.elc)
.PHONY: compile test clean elpa
all: compile
elpa-$(EMACS):
$(CASK) install
$(CASK) update
touch $@
elpa: elpa-$(EMACS)
elpaclean:
rm -f elpa*
rm -rf .cask # Clean packages installed for development
compile: elpa
$(CASK) build
clean:
rm -f $(OBJS) clojure-mode-autoloads.el
test: $(PKGDIR)
$(CASK) exec buttercup
test-checks:
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
-l test/test-checks.el ./
test-bytecomp: $(SRCS:.el=.elc-test)
%.elc-test: %.el elpa
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
-l test/clojure-mode-bytecomp-warnings.el $<