forked from ecukes/ecukes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 819 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
.PHONY : all test unit-test clean clean-elc ecukes
EMACS ?= emacs
SRC = $(filter-out %-pkg.el, $(wildcard *.el reporters/*.el))
ELC = $(SRC:.el=.elc)
CASK ?= cask
PKG_DIR := $(shell $(CASK) package-directory)
FEATURES = $(wildcard features/*.feature features/reporters/*.feature)
all: test
test: clean-elc
$(MAKE) unit-test
$(MAKE) ecukes
$(MAKE) compile
unit-test: elpa
$(CASK) exec ert-runner
elpa: $(PKG_DIR)
$(PKG_DIR): Cask
$(CASK) install
touch $@
compile: $(ELC)
%.elc: %.el
@$(CASK) exec $(EMACS) -Q --script ecukes-byte-compile.el $<
clean: clean-elc
rm -rf $(PKG_DIR)
clean-elc:
rm -rf *.elc test/*.elc reporters/*.elc
ecukes: features/projects/super-project/.cask
$(CASK) exec ecukes --script $(FEATURES)
features/projects/super-project/.cask:
cd features/projects/super-project && cask