forked from bbatsov/projectile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 648 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 648 Bytes
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
EMACS = emacs
EMACSFLAGS =
CASK = cask
VAGRANT = vagrant
OBJECTS = projectile.elc
elpa:
$(CASK) install
$(CASK) update
touch $@
.PHONY: build
build : elpa $(OBJECTS)
.PHONY: test
test : build
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
$(EMACSFLAGS) \
-l test/run-tests
.PHONY: virtual-test
virtual-test :
$(VAGRANT) up
$(VAGRANT) ssh -c "make -C /vagrant EMACS=$(EMACS) clean test"
.PHONY: clean
clean :
rm -f $(OBJECTS)
rm -f elpa
rm -rf .cask # Clean packages installed for development
%.elc : %.el
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch \
$(EMACSFLAGS) \
-f batch-byte-compile $<