Skip to content

Commit 6bbabf6

Browse files
committed
Merge branch 'makefile-refactoring'
2 parents df95d13 + 6cb611d commit 6bbabf6

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

Makefile

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
EMACS = emacs
2-
IPYTHON = ipython
2+
IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
33
IPY_VERSION = 0.13.0
44
TESTEIN = tools/testein.py
5+
TESTEIN_OPTS =
56

6-
testein-default:
7-
$(TESTEIN) --clean-elc --ipython $(IPYTHON)
7+
testein: test-requirements
8+
${MAKE} testein-1
89

9-
testein-24:
10-
$(TESTEIN) --clean-elc -e emacs-snapshot --ipython $(IPYTHON)
11-
12-
testein-unit-all:
13-
$(TESTEIN) --no-func-test --clean-elc --load-ert
14-
$(TESTEIN) --no-func-test --clean-elc -e emacs-snapshot
15-
16-
interactive-testein-default:
17-
$(TESTEIN) --clean-elc --load-ert --no-batch --ipython $(IPYTHON)
18-
19-
interactive-testein-24:
20-
$(TESTEIN) --clean-elc -e emacs-snapshot --no-batch --ipython $(IPYTHON)
10+
interactive-testein: test-requirements
11+
${MAKE} TESTEIN_OPTS="--no-batch" testein-1
2112

2213
submodule:
2314
git submodule update --init
@@ -30,17 +21,8 @@ ert-compile: submodule ert-clean log
3021
ert-clean:
3122
rm -f lib/ert/lisp/emacs-lisp/*.elc
3223

33-
env-ipy.dev:
34-
tools/makeenv.sh env/ipy.dev tools/requirement-ipy.dev.txt
35-
36-
env-ipy.0.13.0:
37-
tools/makeenv.sh env/ipy.0.13.0 tools/requirement-ipy.0.13.0.txt
38-
39-
env-ipy.0.12.1:
40-
tools/makeenv.sh env/ipy.0.12.1 tools/requirement-ipy.0.12.1.txt
41-
42-
env-ipy.0.12.0:
43-
tools/makeenv.sh env/ipy.0.12.0 tools/requirement-ipy.0.12.0.txt
24+
env-ipy.%:
25+
tools/makeenv.sh env/ipy.$* tools/requirement-ipy.$*.txt
4426

4527
env-clean:
4628
rm -rf env
@@ -51,7 +33,9 @@ log:
5133
log-clean:
5234
rm -rf log
5335

54-
travis-ci-testein: ert-compile env-ipy.$(IPY_VERSION)
36+
test-requirements: ert-compile env-ipy.$(IPY_VERSION)
37+
38+
travis-ci-testein: test-requirements
5539
${MAKE} testein-2
5640

5741
testein-2: testein-2-url-retrieve testein-2-curl
@@ -67,7 +51,7 @@ testein-1:
6751
python --version
6852
env/ipy.$(IPY_VERSION)/bin/ipython --version
6953
$(TESTEIN) --clean-elc -e $(EMACS) \
70-
--ipython env/ipy.$(IPY_VERSION)/bin/ipython
54+
--ipython $(IPYTHON) ${TESTEIN_OPTS}
7155

7256
travis-ci-zeroein:
7357
$(EMACS) --version

0 commit comments

Comments
 (0)