emacs-ipython-notebook/Makefile

72 lines
1.6 KiB
Makefile
Raw Normal View History

EMACS ?= emacs
IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
IPY_VERSION = 4.0.0
2012-09-13 15:56:33 +02:00
TESTEIN = tools/testein.py
TESTEIN_OPTS =
2013-05-19 06:53:10 +02:00
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
2012-09-12 16:35:04 +02:00
interactive-testein: test-requirements
${MAKE} TESTEIN_OPTS="--no-batch" testein-1
2013-05-19 06:05:26 +02:00
clean: ert-clean
rm -f lisp/*.elc
rm -f tests/notebook/*.ipynb
2013-05-19 06:05:26 +02:00
purge: clean
rm -rf env log
2013-05-19 06:53:10 +02:00
pkg-info:
@echo "**************************************************"
@echo "Installed Python Packages"
$(PKG_INFO)
2012-12-29 17:59:21 +01:00
submodule:
git submodule update --init
2012-12-26 19:09:51 +01:00
ERT_DIR = lib/ert/lisp/emacs-lisp
2012-12-29 17:59:21 +01:00
ert-compile: submodule ert-clean log
2012-12-26 19:09:51 +01:00
$(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
2012-09-12 17:54:19 +02:00
2013-02-10 05:33:25 +01:00
env-ipy.%:
tools/makeenv.sh env/ipy.$* tools/requirement-ipy.$*.txt
2012-12-26 19:09:51 +01:00
log:
mkdir log
test-requirements: ert-compile env-ipy.$(IPY_VERSION)
2013-05-19 06:53:10 +02:00
${MAKE} pkg-info
travis-ci-testein: test-requirements
2013-01-16 21:00:43 +01:00
${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
2014-12-02 22:16:55 +00:00
env/ipy.$(IPY_VERSION)/bin/ipython --version
2012-09-18 18:34:57 +02:00
$(TESTEIN) --clean-elc -e $(EMACS) \
--ipython $(IPYTHON) ${TESTEIN_OPTS}
2012-09-28 01:02:25 +02:00
travis-ci-zeroein:
$(EMACS) --version
EMACS=$(EMACS) lisp/zeroein.el -batch
rm -rf lib/*
EMACS=$(EMACS) lisp/zeroein.el -batch