forked from clojure-emacs/cider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (42 loc) · 1.08 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
EMACS ?= emacs
EMACSFLAGS = -L .
CASK = cask
VERSION = $(shell git describe --tags --abbrev=0 | sed 's/^v//')
PACKAGE_NAME = cider-$(VERSION)
ELS = $(wildcard *.el)
OBJECTS = $(ELS:.el=.elc)
.depend: $(ELS)
@echo Compute dependencies
@rm -f .depend
@for f in $(ELS); do \
sed -n "s/(require '\(\(cider\|nrepl\)-.*\)).*$$/$${f}c: \1.elc/p" $$f >> .depend;\
done
-include .depend
elpa:
$(CASK) install
$(CASK) update
touch $@
.PHONY: build version
build : elpa $(OBJECTS)
version:
$(EMACS) --version
test-checks : version
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
-l test/cider-checks.el ./
test-bytecomp : version $(ELS:.el=.elc-test)
%.elc-test : %.el elpa
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
-l test/cider-bytecomp-warnings.el $<
test : version build
$(CASK) exec buttercup -L .
.PHONY: clean
clean :
rm -f .depend $(OBJECTS)
.PHONY: elpaclean
elpaclean : clean
rm -f elpa
rm -rf .cask # Clean packages installed for development
%.elc : %.el
$(CASK) build
run-cider: elpa
cask exec emacs -Q -L . --eval "(require 'cider)"