-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
61 lines (41 loc) · 1.27 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
57
58
59
60
61
CASK ?= cask
EMACS ?= emacs
ECUKESFLAGS = --script
ELFILES = magma-completion.el \
magma-font-lock.el \
magma-interactive.el \
magma-mode.el \
magma-extra.el \
magma-smie.el \
magma-scan.el \
magma-q.el \
magma-vars.el
ELCFILES = $(subst .el,.elc,$(ELFILES))
ECUKESFOLDER = features
STEPFILES = $(ECUKESFOLDER)/step-definitions/magma-mode-steps.el
ENVFILES = $(ECUKESFOLDER)/support/env.el
FEATFILES = $(ECUKESFOLDER)/magma-completion.feature \
$(ECUKESFOLDER)/magma-extras-electric-newline.feature \
$(ECUKESFOLDER)/magma-extras-hideshow.feature \
$(ECUKESFOLDER)/magma-indentation.feature \
$(ECUKESFOLDER)/magma-interaction.feature
ECUKESFILES = $(STEPFILES) $(ENVFILES) $(FEATFILES)
export LANG=C
all: test
test: unit ecukes
unit: $(ELCFILES)
${CASK} exec ert-runner
.ecukes-failing-scenarios:
${CASK} exec ecukes $(ECUKESFLAGS)
ecukes-debug: $(ELCFILES) .ecukes-failing-scenarios
${CASK} exec ecukes $(ECUKESFLAGS) --only-failing --debug
ecukes-fail: $(ELCFILES) .ecukes-failing-scenarios
${CASK} exec ecukes $(ECUKESFLAGS) --only-failing
ecukes-all: $(ELCFILES) $(ECUKESFILES)
${CASK} exec ecukes $(ECUKESFLAGS)
ecukes: ecukes-all
%.elc : %.el
${CASK} build
install:
${CASK} install
.PHONY: all test unit ecukes install ecukes-all ecukes-fail ecukes-debug