forked from ecukes/ecukes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 844 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 844 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
37
.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 unit-test ecukes compile
unit-test: elpa
$(CASK) exec ert-runner -L test -L . test/ecukes*.el
elpa: $(PKG_DIR)
$(PKG_DIR): Cask
$(CASK) install
$(CASK) link ecukes .
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