-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile
42 lines (32 loc) · 816 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
40
41
CASK ?= cask
EMACS ?= emacs
BASH ?= bash
BASH_COMPLETION_RC ?= /etc/bash_completion
setup_bash=test/.set-bash-prog.el
all: test
.PHONY: all
test: clean-elc
${MAKE} ert
${MAKE} compile
${MAKE} ert
${MAKE} clean-elc
.PHONY: test
unit:
${CASK} exec ert-runner -L . test/bash-completion-test.el
.PHONY: unit
integration: setup_bash
${CASK} exec ert-runner -L . -l $(setup_bash) -p integration test/bash-completion-integration-test.el
.PHONY: integration
ert: setup_bash
${CASK} exec ert-runner -L . -l $(setup_bash)
.PHONY: ert
compile:
${CASK} build
.PHONY: compile
clean-elc:
${CASK} clean-elc
.PHONY: clean-elc
setup_bash:
@echo '(setq bash-completion-prog "${BASH}")' >$(setup_bash)
@echo '(setq bash-completion_test-setup-completion "${BASH_COMPLETION_RC}")' >>$(setup_bash)
.PHONY: setup_bash