Makefile
74 lines
| 1.4 KiB
| text/x-makefile
|
MakefileLexer
Fernando Perez
|
r1334 | # Set this prefix to where you want to install the plugin | ||
gvaroquaux
|
r1628 | PREFIX=/usr/local | ||
Fernando Perez
|
r1334 | |||
Gael Varoquaux
|
r1505 | NOSE0=nosetests -vs --with-doctest --doctest-tests --detailed-errors | ||
Fernando Perez
|
r1509 | NOSE=nosetests -vvs --with-ipdoctest --doctest-tests --doctest-extension=txt \ | ||
--detailed-errors | ||||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1435 | SRC=ipdoctest.py setup.py ../decorators.py | ||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1482 | # Default target for clean 'make' | ||
default: iplib | ||||
# The actual plugin installation | ||||
Fernando Perez
|
r1334 | plugin: IPython_doctest_plugin.egg-info | ||
Fernando Perez
|
r1482 | # Simple targets that test one thing | ||
simple: plugin simple.py | ||||
$(NOSE) simple.py | ||||
Fernando Perez
|
r1378 | dtest: plugin dtexample.py | ||
Fernando Perez
|
r1420 | $(NOSE) dtexample.py | ||
Fernando Perez
|
r1378 | |||
Fernando Perez
|
r1482 | rtest: plugin test_refs.py | ||
Fernando Perez
|
r1420 | $(NOSE) test_refs.py | ||
Fernando Perez
|
r1334 | test: plugin dtexample.py | ||
Fernando Perez
|
r1420 | $(NOSE) dtexample.py test*.py test*.txt | ||
Fernando Perez
|
r1334 | |||
deb: plugin dtexample.py | ||||
Fernando Perez
|
r1420 | $(NOSE) test_combo.txt | ||
Fernando Perez
|
r1334 | |||
Fernando Perez
|
r1482 | # IPython tests | ||
Fernando Perez
|
r1420 | deco: | ||
Fernando Perez
|
r1509 | $(NOSE0) IPython.testing.decorators | ||
Fernando Perez
|
r1435 | |||
Fernando Perez
|
r1482 | magic: plugin | ||
Fernando Perez
|
r1509 | $(NOSE) IPython.Magic | ||
Fernando Perez
|
r1435 | |||
ipipe: plugin | ||||
Fernando Perez
|
r1509 | $(NOSE) IPython.Extensions.ipipe | ||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1482 | iplib: plugin | ||
Fernando Perez
|
r1509 | $(NOSE) IPython.iplib | ||
Fernando Perez
|
r1482 | |||
strd: plugin | ||||
$(NOSE) IPython.strdispatch | ||||
Fernando Perez
|
r1509 | engine: plugin | ||
$(NOSE) IPython.kernel | ||||
tf: plugin | ||||
$(NOSE) IPython.config.traitlets | ||||
Fernando Perez
|
r1482 | # All of ipython itself | ||
ipython: plugin | ||||
$(NOSE) IPython | ||||
Fernando Perez
|
r1509 | |||
Fernando Perez
|
r1482 | # Combined targets | ||
sr: rtest strd | ||||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1482 | base: dtest rtest test strd deco | ||
Fernando Perez
|
r1420 | |||
Fernando Perez
|
r1509 | quick: base iplib ipipe | ||
Fernando Perez
|
r1482 | all: base ipython | ||
Fernando Perez
|
r1376 | |||
Fernando Perez
|
r1482 | # Main plugin and cleanup | ||
Fernando Perez
|
r1420 | IPython_doctest_plugin.egg-info: $(SRC) | ||
Fernando Perez
|
r1334 | python setup.py install --prefix=$(PREFIX) | ||
touch $@ | ||||
clean: | ||||
rm -rf IPython_doctest_plugin.egg-info *~ *pyc build/ dist/ | ||||