-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
70 lines (53 loc) · 1.55 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
62
63
64
65
66
67
68
69
70
EMACS ?= emacs
IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
IPY_VERSION = 0.13.0
TESTEIN = tools/testein.py
TESTEIN_OPTS =
PKG_INFO = \
grep '^Version' \
env/ipy.$(IPY_VERSION)/lib/python*/site-packages/*.egg-info/PKG-INFO \
| sed -r 's%.*/site-packages/(.*)-py.*\.egg-info/.*:Version: (.*)$$%\1\t\2%'
testein: test-requirements
${MAKE} testein-1
interactive-testein: test-requirements
${MAKE} TESTEIN_OPTS="--no-batch" testein-1
clean: ert-clean
rm -f lisp/*.elc
purge: clean
rm -rf env log
pkg-info:
@echo "**************************************************"
@echo "Installed Python Packages"
$(PKG_INFO)
submodule:
git submodule update --init
ERT_DIR = lib/ert/lisp/emacs-lisp
ert-compile: submodule ert-clean log
$(EMACS) -Q -batch -L $(ERT_DIR) \
-f batch-byte-compile $(ERT_DIR)/*.el 2> log/ert-compile.log
ert-clean:
rm -f lib/ert/lisp/emacs-lisp/*.elc
env-ipy.%:
tools/makeenv.sh env/ipy.$* tools/requirement-ipy.$*.txt
log:
mkdir log
test-requirements: ert-compile env-ipy.$(IPY_VERSION)
${MAKE} pkg-info
travis-ci-testein: test-requirements
${MAKE} testein-2
testein-2: testein-2-url-retrieve testein-2-curl
testein-2-curl:
EL_REQUEST_BACKEND=curl ${MAKE} testein-1
testein-2-url-retrieve:
EL_REQUEST_BACKEND=url-retrieve ${MAKE} testein-1
testein-1:
$(EMACS) --version
python --version
env/ipy.$(IPY_VERSION)/bin/ipython --version
$(TESTEIN) --clean-elc -e $(EMACS) \
--ipython $(IPYTHON) ${TESTEIN_OPTS}
travis-ci-zeroein:
$(EMACS) --version
EMACS=$(EMACS) lisp/zeroein.el -batch
rm -rf lib/*
EMACS=$(EMACS) lisp/zeroein.el -batch